public final class NPixelFormat extends NSampleFormat
| Modifier and Type | Field and Description |
|---|---|
static NPixelFormat |
GRAYSCALE_16S
Specifies grayscale image pixel format where each pixel is represented by 16 bits per channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_16U
Specifies grayscale image pixel format where each pixel is represented by 16 bits per channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_1U
Specifies grayscale image pixel format where each pixel is represented by 1 bit per channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_2U
Specifies grayscale image pixel format where each pixel is represented by 2 bits per channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_32F
Specifies grayscale image pixel format where each pixel is represented by 32 bits per channel (channel format - floating point).
|
static NPixelFormat |
GRAYSCALE_32S
Specifies grayscale image pixel format where each pixel is represented by 32 bits per channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_32U
Specifies grayscale image pixel format where each pixel is represented by 32 bits per channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_4U
Specifies grayscale image pixel format where each pixel is represented by 4 bits per channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_64F
Specifies grayscale image pixel format where each pixel is represented by 64 bits per channel (channel format - floating point).
|
static NPixelFormat |
GRAYSCALE_64S
Specifies grayscale image pixel format where each pixel is represented by 64 bits per channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_64U
Specifies grayscale image pixel format where each pixel is represented by 64 bits per channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_8S
Specifies grayscale image pixel format where each pixel is represented by 8 bits per channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_8U
Specifies grayscale image pixel format where each pixel is represented by 8 bits per channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_A_16S
Specifies grayscale image pixel format where each pixel is represented by 16 bits per alpha channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_A_16U
Specifies grayscale image pixel format where each pixel is represented by 16 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_A_32F
Specifies grayscale image pixel format where each pixel is represented by 32 bits per alpha channel (channel format - floating point).
|
static NPixelFormat |
GRAYSCALE_A_32S
Specifies grayscale image pixel format where each pixel is represented by 32 bits per alpha channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_A_32U
Specifies grayscale image pixel format where each pixel is represented by 32 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_A_64F
Specifies grayscale image pixel format where each pixel is represented by 64 bits per alpha channel (channel format - floating point).
|
static NPixelFormat |
GRAYSCALE_A_64S
Specifies grayscale image pixel format where each pixel is represented by 64 bits per alpha channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_A_64U
Specifies grayscale image pixel format where each pixel is represented by 64 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_A_8S
Specifies grayscale image pixel format where each pixel is represented by 8 bits per alpha channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_A_8U
Specifies grayscale image pixel format where each pixel is represented by 8 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_PA_16S
Specifies grayscale image pixel format where each pixel is represented by 16 bits per pre-multiplied alpha channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_PA_16U
Specifies grayscale image pixel format where each pixel is represented by 16 bits per pre-multiplied alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_PA_32F
Specifies grayscale image pixel format where each pixel is represented by 32 bits per pre-multiplied alpha channel (channel format - floating point).
|
static NPixelFormat |
GRAYSCALE_PA_32S
Specifies grayscale image pixel format where each pixel is represented by 32 bits per pre-multiplied alpha channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_PA_32U
Specifies grayscale image pixel format where each pixel is represented by 32 bits per pre-multiplied alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_PA_64F
Specifies grayscale image pixel format where each pixel is represented by 64 bits per pre-multiplied alpha channel (channel format - floating point).
|
static NPixelFormat |
GRAYSCALE_PA_64S
Specifies grayscale image pixel format where each pixel is represented by 64 bits per pre-multiplied alpha channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_PA_64U
Specifies grayscale image pixel format where each pixel is represented by 64 bits per pre-multiplied alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
GRAYSCALE_PA_8S
Specifies grayscale image pixel format where each pixel is represented by 8 bits per pre-multiplied alpha channel (channel format - signed integer).
|
static NPixelFormat |
GRAYSCALE_PA_8U
Specifies grayscale image pixel format where each pixel is represented by 8 bits per pre-multiplied alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_16S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 16 bits per alpha channel (channel format - signed integer).
|
static NPixelFormat |
RGB_16U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 16 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_32F
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 32 bits per channel (channel format - floating point).
|
static NPixelFormat |
RGB_32S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 32 bits per alpha channel (channel format - signed integer).
|
static NPixelFormat |
RGB_32U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 32 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_64F
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 64 bits per channel (channel format - floating point).
|
static NPixelFormat |
RGB_64S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 64 bits per alpha channel (channel format - signed integer).
|
static NPixelFormat |
RGB_64U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 64 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_8S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per channel (channel format - signed integer).
|
static NPixelFormat |
RGB_8U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_8U_INDEXED_1
Specifies indexed Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_8U_INDEXED_2
Specifies indexed Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_8U_INDEXED_4
Specifies indexed Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_8U_INDEXED_8
Specifies indexed Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_A_16S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 16 bits per alpha channel (channel format - signed integer).
|
static NPixelFormat |
RGB_A_16U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 16 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_A_32F
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 32 bits per alpha channel (channel format - floating point).
|
static NPixelFormat |
RGB_A_32S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 32 bits per alpha channel (channel format - signed integer).
|
static NPixelFormat |
RGB_A_32U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 32 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_A_64F
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 64 bits per alpha channel (channel format - floating point).
|
static NPixelFormat |
RGB_A_64S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 64 bits per alpha channel (channel format - signed integer).
|
static NPixelFormat |
RGB_A_64U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 64 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_A_8S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per alpha channel (channel format - signed integer).
|
static NPixelFormat |
RGB_A_8U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_A_8U_INDEXED_1
Specifies indexed Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_A_8U_INDEXED_2
Specifies indexed Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_A_8U_INDEXED_4
Specifies indexed Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_A_8U_INDEXED_8
Specifies indexed Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_PA_16S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 16 bits per pre-multiplied alpha channel (channel format - signed integer).
|
static NPixelFormat |
RGB_PA_16U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 16 bits per pre-multiplied alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_PA_32F
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 32 bits per pre-multiplied alpha channel (channel format - floating point).
|
static NPixelFormat |
RGB_PA_32S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 32 bits per pre-multiplied alpha channel (channel format - signed integer).
|
static NPixelFormat |
RGB_PA_32U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 32 bits per pre-multiplied alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_PA_64F
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 64 bits per pre-multiplied alpha channel (channel format - floating point).
|
static NPixelFormat |
RGB_PA_64S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 64 bits per pre-multiplied alpha channel (channel format - signed integer).
|
static NPixelFormat |
RGB_PA_64U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 64 bits per pre-multiplied alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
RGB_PA_8S
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per pre-multiplied alpha channel (channel format - signed integer).
|
static NPixelFormat |
RGB_PA_8U
Specifies Rgb image pixel format where each pixel (Red, Green, Blue) is represented by 8 bits per pre-multiplied alpha channel (channel format - unsigned integer).
|
static NPixelFormat |
UNDEFINED
Indicates undefined pixel format.
|
MAX_CHANNEL_COUNT, value| Constructor and Description |
|---|
NPixelFormat(int value)
Initializes a new instance of NPixelFormat class.
|
NPixelFormat(NPixelType pixelType,
NExtraChannel extraChannel,
int channelCount,
NChannelFormat channelFormat,
int bitsPerChannel,
int bitsPerIndex,
boolean isSeparated)
Initializes a new instance of NPixelFormat class.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
calcRowLongSize(int bitsPerPixel,
int length)
Calculates number of bytes needed to store line of specified length of pixels with specified bits per pixel and alignment.
|
static long |
calcRowLongSize(int bitsPerPixel,
int length,
int alignment)
Calculates number of bytes needed to store line of specified length of pixels with specified bits per pixel and alignment.
|
static int |
calcRowSize(int bitsPerPixel,
int length)
Calculates number of bytes needed to store line of specified length of pixels with specified bits per pixel and alignment.
|
static int |
calcRowSize(int bitsPerPixel,
int length,
int alignment)
Calculates number of bytes needed to store line of specified length of pixels with specified bits per pixel and alignment.
|
int |
getBitsPerPixel()
Retrieves number of bits used to store a pixel.
|
int |
getBytesPerPixel()
Retrieves number of bytes used to store a pixel.
|
NPixelFormat |
getIndexed(int bitsPerIndex)
Retrieves an indexed version of the NPixelFormat.
|
NPixelFormat |
getNonIndexed()
Retrieves a non-indexed version of the NPixelFormat.
|
NPixelFormat |
getNonSeparated()
Retrieves a non-separated version of the NPixelFormat.
|
int |
getPaletteSize(int length)
Retrieves the palette size.
|
NPixelType |
getPixelType(int sampleFormat)
Retrieves the pixel type for the specified pixel format.
|
long |
getRowLongSize(int length)
Calculates number of bytes needed to store line of specified length of pixels with specified NPixelFormat.
|
long |
getRowLongSize(int length,
int alignment)
Calculates number of bytes needed to store line of specified length of pixels with specified NPixelFormat and alignment.
|
int |
getRowSize(int length)
Calculates number of bytes needed to store line of specified length of pixels with specified NPixelFormat.
|
int |
getRowSize(int length,
int alignment)
Calculates number of bytes needed to store line of specified length of pixels with specified NPixelFormat and alignment.
|
NPixelFormat |
getSeparated()
Retrieves a separated version of the NPixelFormat.
|
NPixelFormat |
getWithExtraChannel(NExtraChannel extraChannel)
Retrieves a version of the NPixelFormat with an extra channel.
|
boolean |
isValid()
Checks whether current NPixelFormat value is valid.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
String |
toString()
Converts a pixel format into a string.
|
String |
toString(String format)
Gets the string representation of the current object.
|
equals, getBitsPerChannel, getBitsPerIndex, getBitsPerPaletteEntry, getBitsPerSample, getBitsPerValue, getBytesPerChannel, getBytesPerPaletteEntry, getBytesPerSample, getBytesPerValue, getChannelCount, getChannelFormat, getChannelType, getExtraChannel, getMaxPaletteLength, getPlaneCount, getValue, hashCode, isIndexed, isSeparatedpublic static final NPixelFormat UNDEFINED
public static final NPixelFormat GRAYSCALE_1U
public static final NPixelFormat GRAYSCALE_2U
public static final NPixelFormat GRAYSCALE_4U
public static final NPixelFormat GRAYSCALE_8U
public static final NPixelFormat GRAYSCALE_8S
public static final NPixelFormat GRAYSCALE_A_8U
public static final NPixelFormat GRAYSCALE_A_8S
public static final NPixelFormat GRAYSCALE_PA_8U
public static final NPixelFormat GRAYSCALE_PA_8S
public static final NPixelFormat GRAYSCALE_16U
public static final NPixelFormat GRAYSCALE_16S
public static final NPixelFormat GRAYSCALE_A_16U
public static final NPixelFormat GRAYSCALE_A_16S
public static final NPixelFormat GRAYSCALE_PA_16U
public static final NPixelFormat GRAYSCALE_PA_16S
public static final NPixelFormat GRAYSCALE_32U
public static final NPixelFormat GRAYSCALE_32S
public static final NPixelFormat GRAYSCALE_A_32U
public static final NPixelFormat GRAYSCALE_A_32S
public static final NPixelFormat GRAYSCALE_PA_32U
public static final NPixelFormat GRAYSCALE_PA_32S
public static final NPixelFormat GRAYSCALE_64U
public static final NPixelFormat GRAYSCALE_64S
public static final NPixelFormat GRAYSCALE_A_64U
public static final NPixelFormat GRAYSCALE_A_64S
public static final NPixelFormat GRAYSCALE_PA_64U
public static final NPixelFormat GRAYSCALE_PA_64S
public static final NPixelFormat GRAYSCALE_32F
public static final NPixelFormat GRAYSCALE_A_32F
public static final NPixelFormat GRAYSCALE_PA_32F
public static final NPixelFormat GRAYSCALE_64F
public static final NPixelFormat GRAYSCALE_A_64F
public static final NPixelFormat GRAYSCALE_PA_64F
public static final NPixelFormat RGB_8U
public static final NPixelFormat RGB_8S
public static final NPixelFormat RGB_A_8U
public static final NPixelFormat RGB_A_8S
public static final NPixelFormat RGB_PA_8U
public static final NPixelFormat RGB_PA_8S
public static final NPixelFormat RGB_16U
public static final NPixelFormat RGB_16S
public static final NPixelFormat RGB_A_16U
public static final NPixelFormat RGB_A_16S
public static final NPixelFormat RGB_PA_16U
public static final NPixelFormat RGB_PA_16S
public static final NPixelFormat RGB_32U
public static final NPixelFormat RGB_32S
public static final NPixelFormat RGB_A_32U
public static final NPixelFormat RGB_A_32S
public static final NPixelFormat RGB_PA_32U
public static final NPixelFormat RGB_PA_32S
public static final NPixelFormat RGB_64U
public static final NPixelFormat RGB_64S
public static final NPixelFormat RGB_A_64U
public static final NPixelFormat RGB_A_64S
public static final NPixelFormat RGB_PA_64U
public static final NPixelFormat RGB_PA_64S
public static final NPixelFormat RGB_32F
public static final NPixelFormat RGB_A_32F
public static final NPixelFormat RGB_PA_32F
public static final NPixelFormat RGB_64F
public static final NPixelFormat RGB_A_64F
public static final NPixelFormat RGB_PA_64F
public static final NPixelFormat RGB_8U_INDEXED_1
public static final NPixelFormat RGB_8U_INDEXED_2
public static final NPixelFormat RGB_8U_INDEXED_4
public static final NPixelFormat RGB_8U_INDEXED_8
public static final NPixelFormat RGB_A_8U_INDEXED_1
public static final NPixelFormat RGB_A_8U_INDEXED_2
public static final NPixelFormat RGB_A_8U_INDEXED_4
public static final NPixelFormat RGB_A_8U_INDEXED_8
public NPixelFormat(int value)
value - The pixel format.public NPixelFormat(NPixelType pixelType, NExtraChannel extraChannel, int channelCount, NChannelFormat channelFormat, int bitsPerChannel, int bitsPerIndex, boolean isSeparated)
pixelType - Type of pixels.extraChannel - The extra channel.channelCount - The number of channels.channelFormat - Format of the channel.bitsPerChannel - Number of bits per channel.bitsPerIndex - Number of bits per index.isSeparated - true if separated; else false.public static com.neurotec.lang.NType nativeTypeOf()
public static int calcRowSize(int bitsPerPixel,
int length,
int alignment)
bitsPerPixel - A number of bytes needed to store line of pixels.length - A length of pixels.alignment - Alignment.public static long calcRowLongSize(int bitsPerPixel,
int length,
int alignment)
bitsPerPixel - A number of bytes needed to store line of pixels.length - A length of pixels.alignment - Alignment.public static int calcRowSize(int bitsPerPixel,
int length)
bitsPerPixel - A number of bytes needed to store line of pixels.length - A length of pixels.public static long calcRowLongSize(int bitsPerPixel,
int length)
bitsPerPixel - A number of bytes needed to store line of pixels.length - A length of pixels.public NPixelFormat getIndexed(int bitsPerIndex)
bitsPerIndex - Number of bits per index.public NPixelFormat getNonIndexed()
public NPixelFormat getSeparated()
public NPixelFormat getNonSeparated()
public NPixelFormat getWithExtraChannel(NExtraChannel extraChannel)
public int getRowSize(int length,
int alignment)
length - A length of pixels.alignment - Alignment.public long getRowLongSize(int length,
int alignment)
length - A length of pixels.alignment - Alignment.public int getRowSize(int length)
length - A length of pixels.public long getRowLongSize(int length)
length - A length of pixels.public int getPaletteSize(int length)
length - The length of pixels.public boolean isValid()
true if the object is valid NPixelFormat, false if not.public NPixelType getPixelType(int sampleFormat)
sampleFormat - Specified pixel format.public int getBitsPerPixel()
public int getBytesPerPixel()
public final String toString()
Copyright © 2016 Neurotechnology. All rights reserved.