public interface ColorSpace
Modifier and Type | Method and Description |
---|---|
int |
composePixel(int... channelValues)
Converts an array of channel values into a pixel
|
void |
convert(ij.ImagePlus img,
ColorSpace imgSpace,
JIPipeProgressInfo progressInfo)
Converts the image into the current color space
|
int |
convert(int pixel,
ColorSpace imgSpace)
Converts a single pixel from its source image space into this one
|
void |
convertToRGB(ij.ImagePlus img,
JIPipeProgressInfo progressInfo)
Converts the color image into RGB (in-place)
|
int |
convertToRGB(int pixel)
Converts a single pixel from its source image space into RGB
|
void |
decomposePixel(int pixel,
int[] channelValues)
Decomposes an integer pixel value into its channel values
|
String |
getChannelName(int channelIndex)
Returns the channel name for a given channel index
|
String |
getChannelShortName(int channelIndex)
Returns the channel name for a given channel index
|
int |
getNChannels()
Returns the number of pixel channels.
|
void convertToRGB(ij.ImagePlus img, JIPipeProgressInfo progressInfo)
img
- the imageprogressInfo
- the progress infovoid convert(ij.ImagePlus img, ColorSpace imgSpace, JIPipeProgressInfo progressInfo)
img
- the imageimgSpace
- the color space of the imageprogressInfo
- the progressint convert(int pixel, ColorSpace imgSpace)
pixel
- the pixel (24 bit)imgSpace
- the pixel image spaceint convertToRGB(int pixel)
pixel
- the pixel (24 bit)int getNChannels()
String getChannelName(int channelIndex)
channelIndex
- the channel indexString getChannelShortName(int channelIndex)
channelIndex
- the channel indexint composePixel(int... channelValues)
channelValues
- the channel values. must have at least getNChannels() itemsvoid decomposePixel(int pixel, int[] channelValues)
pixel
- the pixelchannelValues
- array with at least getNChannels() items. The values will be written into this array.Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.