@Namespace(value="FlyCapture2") @NoOffset @Properties(inherit=FlyCapture2.class) public class Image extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Image()
Default constructor.
|
Image(byte[] pData,
int dataSize) |
Image(ByteBuffer pData,
int dataSize) |
Image(BytePointer pData,
int dataSize)
Construct an Image object with the specified arguments.
|
Image(Image image)
Copy constructor.
|
Image(int rows,
int cols,
int format) |
Image(int rows,
int cols,
int stride,
byte[] pData,
int dataSize,
int format) |
Image(int rows,
int cols,
int stride,
byte[] pData,
int dataSize,
int format,
int bayerFormat) |
Image(int rows,
int cols,
int stride,
byte[] pData,
int dataSize,
int receivedDataSize,
int format,
int bayerFormat) |
Image(int rows,
int cols,
int stride,
ByteBuffer pData,
int dataSize,
int format) |
Image(int rows,
int cols,
int stride,
ByteBuffer pData,
int dataSize,
int format,
int bayerFormat) |
Image(int rows,
int cols,
int stride,
ByteBuffer pData,
int dataSize,
int receivedDataSize,
int format,
int bayerFormat) |
Image(int rows,
int cols,
int stride,
BytePointer pData,
int dataSize,
int format) |
Image(int rows,
int cols,
int stride,
BytePointer pData,
int dataSize,
int format,
int bayerFormat)
Construct an Image object with the specified arguments.
|
Image(int rows,
int cols,
int stride,
BytePointer pData,
int dataSize,
int receivedDataSize,
int format,
int bayerFormat)
Construct an Image object with the specified arguments.
|
Image(int rows,
int cols,
int format,
int bayerFormat)
Construct an Image object with the specified arguments.
|
Image(long size)
Native array allocator.
|
Image(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BytePointer |
apply(int row,
int col)
Indexing operator.
|
Error |
CalculateStatistics(ImageStatistics pStatistics)
Calculate statistics associated with the image.
|
Error |
Convert(Image pDestImage)
Converts the current image buffer to the specified output format and
stores the result in the specified image.
|
Error |
Convert(int format,
Image pDestImage)
Converts the current image buffer to the specified output format and
stores the result in the specified image.
|
Error |
DeepCopy(Image pImage)
Perform a deep copy of the Image.
|
static int |
DetermineBitsPerPixel(int format)
Calculate the bits per pixel for the specified pixel format.
|
BytePointer |
get(int index)
Indexing operator.
|
int |
GetBayerTileFormat()
Get the Bayer tile format of the image.
|
int |
GetBitsPerPixel()
Get the bits per pixel of the image.
|
int |
GetBlockId()
get the block id of the Image object.
|
int |
GetColorProcessing()
Get the current color processing algorithm.
|
int |
GetCols()
Get the number of columns in the image.
|
BytePointer |
GetData()
Get a pointer to the data associated with the image.
|
int |
GetDataSize()
Get the size of the buffer associated with the image, in bytes.
|
static int |
GetDefaultColorProcessing()
Get the default color processing algorithm.
|
static int |
GetDefaultOutputFormat()
Get the default output pixel format.
|
void |
GetDimensions(int[] pRows) |
void |
GetDimensions(int[] pRows,
int[] pCols,
int[] pStride,
int[] pPixelFormat,
int[] pBayerFormat) |
void |
GetDimensions(IntBuffer pRows) |
void |
GetDimensions(IntBuffer pRows,
IntBuffer pCols,
IntBuffer pStride,
IntBuffer pPixelFormat,
IntBuffer pBayerFormat) |
void |
GetDimensions(IntPointer pRows) |
void |
GetDimensions(IntPointer pRows,
IntPointer pCols,
IntPointer pStride,
IntPointer pPixelFormat,
IntPointer pBayerFormat)
Get the image dimensions associated with the image.
|
ImageMetadata |
GetMetadata()
Get the metadata associated with the image.
|
int |
GetPixelFormat()
Get the current pixel format.
|
Image |
getPointer(long i) |
int |
GetReceivedDataSize()
Get the size of the compressed data, in bytes.
|
int |
GetRows()
Get the number of rows in the image.
|
int |
GetStride()
Get the stride in the image.
|
TimeStamp |
GetTimeStamp()
Get the timestamp data associated with the image.
|
Image |
position(long position) |
Image |
put(Image image)
Assignment operator.
|
Error |
ReleaseBuffer()
Release the buffer associated with the Image.
|
Error |
Save(BytePointer pFilename) |
Error |
Save(BytePointer pFilename,
BMPOption pOption)
Save the image to the specified file name with the options specified.
|
Error |
Save(BytePointer pFilename,
int format)
Save the image to the specified file name with the file format
specified.
|
Error |
Save(BytePointer pFilename,
JPEGOption pOption)
Save the image to the specified file name with the options specified.
|
Error |
Save(BytePointer pFilename,
JPG2Option pOption)
Save the image to the specified file name with the options specified.
|
Error |
Save(BytePointer pFilename,
PGMOption pOption)
Save the image to the specified file name with the options specified.
|
Error |
Save(BytePointer pFilename,
PNGOption pOption)
Save the image to the specified file name with the options specified.
|
Error |
Save(BytePointer pFilename,
PPMOption pOption)
Save the image to the specified file name with the options specified.
|
Error |
Save(BytePointer pFilename,
TIFFOption pOption)
Save the image to the specified file name with the options specified.
|
Error |
Save(String pFilename) |
Error |
Save(String pFilename,
BMPOption pOption) |
Error |
Save(String pFilename,
int format) |
Error |
Save(String pFilename,
JPEGOption pOption) |
Error |
Save(String pFilename,
JPG2Option pOption) |
Error |
Save(String pFilename,
PGMOption pOption) |
Error |
Save(String pFilename,
PNGOption pOption) |
Error |
Save(String pFilename,
PPMOption pOption) |
Error |
Save(String pFilename,
TIFFOption pOption) |
Error |
SetBlockId(int blockId)
Set the block id of the Image object.
|
Error |
SetColorProcessing(int colorProc)
Set the color processing algorithm.
|
Error |
SetData(byte[] pData,
int dataSize) |
Error |
SetData(ByteBuffer pData,
int dataSize) |
Error |
SetData(BytePointer pData,
int dataSize)
Set the data of the Image object.
|
static Error |
SetDefaultColorProcessing(int defaultMethod)
Set the default color processing algorithm.
|
static Error |
SetDefaultOutputFormat(int format)
Set the default output pixel format.
|
Error |
SetDimensions(int rows,
int cols,
int stride,
int pixelFormat,
int bayerFormat)
Sets the dimensions of the image object.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Image(Pointer p)
Pointer(Pointer).public Image(long size)
Pointer.position(long).public Image()
public Image(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="unsigned int") int stride, @Cast(value="unsigned char*") BytePointer pData, @Cast(value="unsigned int") int dataSize, @Cast(value="FlyCapture2::PixelFormat") int format, @Cast(value="FlyCapture2::BayerTileFormat") int bayerFormat)
rows - Rows in the image.cols - Columns in the image.stride - Stride of the image buffer.pData - Pointer to the image buffer.dataSize - Size of the image buffer.format - Pixel format.bayerFormat - Format of the Bayer tiled raw image.public Image(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="unsigned int") int stride, @Cast(value="unsigned char*") BytePointer pData, @Cast(value="unsigned int") int dataSize, @Cast(value="FlyCapture2::PixelFormat") int format)
public Image(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="unsigned int") int stride, @Cast(value="unsigned char*") ByteBuffer pData, @Cast(value="unsigned int") int dataSize, @Cast(value="FlyCapture2::PixelFormat") int format, @Cast(value="FlyCapture2::BayerTileFormat") int bayerFormat)
public Image(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="unsigned int") int stride, @Cast(value="unsigned char*") ByteBuffer pData, @Cast(value="unsigned int") int dataSize, @Cast(value="FlyCapture2::PixelFormat") int format)
public Image(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="unsigned int") int stride, @Cast(value="unsigned char*") byte[] pData, @Cast(value="unsigned int") int dataSize, @Cast(value="FlyCapture2::PixelFormat") int format, @Cast(value="FlyCapture2::BayerTileFormat") int bayerFormat)
public Image(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="unsigned int") int stride, @Cast(value="unsigned char*") byte[] pData, @Cast(value="unsigned int") int dataSize, @Cast(value="FlyCapture2::PixelFormat") int format)
public Image(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="unsigned int") int stride, @Cast(value="unsigned char*") BytePointer pData, @Cast(value="unsigned int") int dataSize, @Cast(value="unsigned int") int receivedDataSize, @Cast(value="FlyCapture2::PixelFormat") int format, @Cast(value="FlyCapture2::BayerTileFormat") int bayerFormat)
rows - Rows in the image.cols - Columns in the image.stride - Stride of the image buffer.pData - Pointer to the image buffer.dataSize - Size of the image buffer.receivedDataSize - Actual size of data.format - Pixel format.bayerFormat - Format of the Bayer tiled raw image.public Image(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="unsigned int") int stride, @Cast(value="unsigned char*") ByteBuffer pData, @Cast(value="unsigned int") int dataSize, @Cast(value="unsigned int") int receivedDataSize, @Cast(value="FlyCapture2::PixelFormat") int format, @Cast(value="FlyCapture2::BayerTileFormat") int bayerFormat)
public Image(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="unsigned int") int stride, @Cast(value="unsigned char*") byte[] pData, @Cast(value="unsigned int") int dataSize, @Cast(value="unsigned int") int receivedDataSize, @Cast(value="FlyCapture2::PixelFormat") int format, @Cast(value="FlyCapture2::BayerTileFormat") int bayerFormat)
public Image(@Cast(value="unsigned char*") BytePointer pData, @Cast(value="unsigned int") int dataSize)
pData - Pointer to the image buffer.dataSize - Size of the image buffer.public Image(@Cast(value="unsigned char*") ByteBuffer pData, @Cast(value="unsigned int") int dataSize)
public Image(@Cast(value="unsigned char*") byte[] pData, @Cast(value="unsigned int") int dataSize)
public Image(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="FlyCapture2::PixelFormat") int format, @Cast(value="FlyCapture2::BayerTileFormat") int bayerFormat)
rows - Rows in the image.cols - Columns in the image.format - Pixel format.bayerFormat - Format of the Bayer tiled raw image.public Image(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="FlyCapture2::PixelFormat") int format)
public Image getPointer(long i)
getPointer in class Pointer@ByVal public static Error SetDefaultColorProcessing(@Cast(value="FlyCapture2::ColorProcessingAlgorithm") int defaultMethod)
defaultMethod - The color processing algorithm to set.GetDefaultColorProcessing()@Cast(value="FlyCapture2::ColorProcessingAlgorithm") public static int GetDefaultColorProcessing()
SetDefaultColorProcessing()@ByVal public static Error SetDefaultOutputFormat(@Cast(value="FlyCapture2::PixelFormat") int format)
format - The output pixel format to set.GetDefaultOutputFormat()@Cast(value="FlyCapture2::PixelFormat") public static int GetDefaultOutputFormat()
SetDefaultOutputFormat()@Cast(value="unsigned int") public static int DetermineBitsPerPixel(@Cast(value="FlyCapture2::PixelFormat") int format)
format - The pixel format.@ByRef @Name(value="operator =") public Image put(@Const @ByRef Image image)
image - The image to copy from.@Cast(value="unsigned char*") @Name(value="operator []") public BytePointer get(@Cast(value="unsigned int") int index)
index - The index of the byte to return.@Cast(value="unsigned char*") @Name(value="operator ()") public BytePointer apply(@Cast(value="unsigned int") int row, @Cast(value="unsigned int") int col)
row - The row of the pixel to return.col - The column of the pixel to return.@ByVal public Error DeepCopy(@Const Image pImage)
pImage - The Image to copy the data from.@ByVal public Error SetDimensions(@Cast(value="unsigned int") int rows, @Cast(value="unsigned int") int cols, @Cast(value="unsigned int") int stride, @Cast(value="FlyCapture2::PixelFormat") int pixelFormat, @Cast(value="FlyCapture2::BayerTileFormat") int bayerFormat)
rows - Number of rows to set.cols - Number of cols to set.stride - Stride to set.pixelFormat - Pixel format to set.bayerFormat - Bayer tile format to set.GetDimensions()@ByVal public Error SetData(@Cast(value="const unsigned char*") BytePointer pData, @Cast(value="unsigned int") int dataSize)
pData - Pointer to the image buffer.dataSize - Size of the image buffer.@ByVal public Error SetData(@Cast(value="const unsigned char*") ByteBuffer pData, @Cast(value="unsigned int") int dataSize)
@ByVal public Error SetData(@Cast(value="const unsigned char*") byte[] pData, @Cast(value="unsigned int") int dataSize)
@ByVal public Error SetBlockId(@Cast(value="const unsigned int") int blockId)
blockId - The blockId to assign to the image.@Cast(value="unsigned int") public int GetBlockId()
@Cast(value="FlyCapture2::PixelFormat") public int GetPixelFormat()
@Cast(value="FlyCapture2::ColorProcessingAlgorithm") public int GetColorProcessing()
SetColorProcessing()@ByVal public Error SetColorProcessing(@Cast(value="FlyCapture2::ColorProcessingAlgorithm") int colorProc)
colorProc - The color processing algorithm to use.GetColorProcessing()@Cast(value="unsigned int") public int GetCols()
@Cast(value="unsigned int") public int GetRows()
@Cast(value="unsigned int") public int GetStride()
@Cast(value="unsigned int") public int GetBitsPerPixel()
@Cast(value="FlyCapture2::BayerTileFormat") public int GetBayerTileFormat()
@Cast(value="unsigned int") public int GetDataSize()
@Cast(value="unsigned int") public int GetReceivedDataSize()
public void GetDimensions(@Cast(value="unsigned int*") IntPointer pRows, @Cast(value="unsigned int*") IntPointer pCols, @Cast(value="unsigned int*") IntPointer pStride, @Cast(value="FlyCapture2::PixelFormat*") IntPointer pPixelFormat, @Cast(value="FlyCapture2::BayerTileFormat*") IntPointer pBayerFormat)
pRows - Number of rows.pCols - Number of columns.pStride - The stride.pPixelFormat - Pixel format.pBayerFormat - Bayer tile format.public void GetDimensions(@Cast(value="unsigned int*") IntPointer pRows)
public void GetDimensions(@Cast(value="unsigned int*") IntBuffer pRows, @Cast(value="unsigned int*") IntBuffer pCols, @Cast(value="unsigned int*") IntBuffer pStride, @Cast(value="FlyCapture2::PixelFormat*") IntBuffer pPixelFormat, @Cast(value="FlyCapture2::BayerTileFormat*") IntBuffer pBayerFormat)
public void GetDimensions(@Cast(value="unsigned int*") int[] pRows, @Cast(value="unsigned int*") int[] pCols, @Cast(value="unsigned int*") int[] pStride, @Cast(value="FlyCapture2::PixelFormat*") int[] pPixelFormat, @Cast(value="FlyCapture2::BayerTileFormat*") int[] pBayerFormat)
@Cast(value="unsigned char*") public BytePointer GetData()
@ByVal public ImageMetadata GetMetadata()
@ByVal public Error CalculateStatistics(ImageStatistics pStatistics)
pStatistics - The ImageStatistics object to hold the statistics.@ByVal public TimeStamp GetTimeStamp()
@ByVal public Error Save(@Cast(value="const char*") BytePointer pFilename, @Cast(value="FlyCapture2::ImageFileFormat") int format)
pFilename - Filename to save image with.format - File format to save in.@ByVal public Error Save(@Cast(value="const char*") BytePointer pFilename)
@ByVal public Error Save(String pFilename, @Cast(value="FlyCapture2::ImageFileFormat") int format)
@ByVal public Error Save(@Cast(value="const char*") BytePointer pFilename, PNGOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public Error Save(@Cast(value="const char*") BytePointer pFilename, PPMOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public Error Save(@Cast(value="const char*") BytePointer pFilename, PGMOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public Error Save(@Cast(value="const char*") BytePointer pFilename, TIFFOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public Error Save(String pFilename, TIFFOption pOption)
@ByVal public Error Save(@Cast(value="const char*") BytePointer pFilename, JPEGOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public Error Save(String pFilename, JPEGOption pOption)
@ByVal public Error Save(@Cast(value="const char*") BytePointer pFilename, JPG2Option pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public Error Save(String pFilename, JPG2Option pOption)
@ByVal public Error Save(@Cast(value="const char*") BytePointer pFilename, BMPOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public Error Convert(@Cast(value="FlyCapture2::PixelFormat") int format, Image pDestImage)
format - Output format of the converted image.pDestImage - Destination image.@ByVal public Error Convert(Image pDestImage)
pDestImage - Destination image.Copyright © 2021. All rights reserved.