@Namespace(value="FlyCapture2") @NoOffset public static class FlyCapture2.Image extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| 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(FlyCapture2.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.
|
FlyCapture2.Error |
CalculateStatistics(FlyCapture2.ImageStatistics pStatistics)
Calculate statistics associated with the image.
|
FlyCapture2.Error |
Convert(FlyCapture2.Image pDestImage)
Converts the current image buffer to the specified output format and
stores the result in the specified image.
|
FlyCapture2.Error |
Convert(int format,
FlyCapture2.Image pDestImage)
Converts the current image buffer to the specified output format and
stores the result in the specified image.
|
FlyCapture2.Error |
DeepCopy(FlyCapture2.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.
|
FlyCapture2.ImageMetadata |
GetMetadata()
Get the metadata associated with the image.
|
int |
GetPixelFormat()
Get the current pixel format.
|
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.
|
FlyCapture2.TimeStamp |
GetTimeStamp()
Get the timestamp data associated with the image.
|
FlyCapture2.Image |
position(long position) |
FlyCapture2.Image |
put(FlyCapture2.Image image)
Assignment operator.
|
FlyCapture2.Error |
ReleaseBuffer()
Release the buffer associated with the Image.
|
FlyCapture2.Error |
Save(BytePointer pFilename) |
FlyCapture2.Error |
Save(BytePointer pFilename,
FlyCapture2.BMPOption pOption)
Save the image to the specified file name with the options specified.
|
FlyCapture2.Error |
Save(BytePointer pFilename,
FlyCapture2.JPEGOption pOption)
Save the image to the specified file name with the options specified.
|
FlyCapture2.Error |
Save(BytePointer pFilename,
FlyCapture2.JPG2Option pOption)
Save the image to the specified file name with the options specified.
|
FlyCapture2.Error |
Save(BytePointer pFilename,
FlyCapture2.PGMOption pOption)
Save the image to the specified file name with the options specified.
|
FlyCapture2.Error |
Save(BytePointer pFilename,
FlyCapture2.PNGOption pOption)
Save the image to the specified file name with the options specified.
|
FlyCapture2.Error |
Save(BytePointer pFilename,
FlyCapture2.PPMOption pOption)
Save the image to the specified file name with the options specified.
|
FlyCapture2.Error |
Save(BytePointer pFilename,
FlyCapture2.TIFFOption pOption)
Save the image to the specified file name with the options specified.
|
FlyCapture2.Error |
Save(BytePointer pFilename,
int format)
Save the image to the specified file name with the file format
specified.
|
FlyCapture2.Error |
Save(String pFilename) |
FlyCapture2.Error |
Save(String pFilename,
FlyCapture2.BMPOption pOption) |
FlyCapture2.Error |
Save(String pFilename,
FlyCapture2.JPEGOption pOption) |
FlyCapture2.Error |
Save(String pFilename,
FlyCapture2.JPG2Option pOption) |
FlyCapture2.Error |
Save(String pFilename,
FlyCapture2.PGMOption pOption) |
FlyCapture2.Error |
Save(String pFilename,
FlyCapture2.PNGOption pOption) |
FlyCapture2.Error |
Save(String pFilename,
FlyCapture2.PPMOption pOption) |
FlyCapture2.Error |
Save(String pFilename,
FlyCapture2.TIFFOption pOption) |
FlyCapture2.Error |
Save(String pFilename,
int format) |
FlyCapture2.Error |
SetBlockId(int blockId)
Set the block id of the Image object.
|
FlyCapture2.Error |
SetColorProcessing(int colorProc)
Set the color processing algorithm.
|
FlyCapture2.Error |
SetData(byte[] pData,
int dataSize) |
FlyCapture2.Error |
SetData(ByteBuffer pData,
int dataSize) |
FlyCapture2.Error |
SetData(BytePointer pData,
int dataSize)
Set the data of the Image object.
|
static FlyCapture2.Error |
SetDefaultColorProcessing(int defaultMethod)
Set the default color processing algorithm.
|
static FlyCapture2.Error |
SetDefaultOutputFormat(int format)
Set the default output pixel format.
|
FlyCapture2.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, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Image(Pointer p)
Pointer.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(@Const @ByRef FlyCapture2.Image image)
public FlyCapture2.Image position(long position)
@ByVal public static FlyCapture2.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 FlyCapture2.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 FlyCapture2.Image put(@Const @ByRef FlyCapture2.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 FlyCapture2.Error DeepCopy(@Const FlyCapture2.Image pImage)
pImage - The Image to copy the data from.@ByVal public FlyCapture2.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 FlyCapture2.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 FlyCapture2.Error SetData(@Cast(value="const unsigned char*") ByteBuffer pData, @Cast(value="unsigned int") int dataSize)
@ByVal public FlyCapture2.Error SetData(@Cast(value="const unsigned char*") byte[] pData, @Cast(value="unsigned int") int dataSize)
@ByVal public FlyCapture2.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 FlyCapture2.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 FlyCapture2.ImageMetadata GetMetadata()
@ByVal public FlyCapture2.Error CalculateStatistics(FlyCapture2.ImageStatistics pStatistics)
pStatistics - The ImageStatistics object to hold the statistics.@ByVal public FlyCapture2.TimeStamp GetTimeStamp()
@ByVal public FlyCapture2.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 FlyCapture2.Error Save(@Cast(value="const char*") BytePointer pFilename)
@ByVal public FlyCapture2.Error Save(String pFilename, @Cast(value="FlyCapture2::ImageFileFormat") int format)
@ByVal public FlyCapture2.Error Save(String pFilename)
@ByVal public FlyCapture2.Error Save(@Cast(value="const char*") BytePointer pFilename, FlyCapture2.PNGOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public FlyCapture2.Error Save(String pFilename, FlyCapture2.PNGOption pOption)
@ByVal public FlyCapture2.Error Save(@Cast(value="const char*") BytePointer pFilename, FlyCapture2.PPMOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public FlyCapture2.Error Save(String pFilename, FlyCapture2.PPMOption pOption)
@ByVal public FlyCapture2.Error Save(@Cast(value="const char*") BytePointer pFilename, FlyCapture2.PGMOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public FlyCapture2.Error Save(String pFilename, FlyCapture2.PGMOption pOption)
@ByVal public FlyCapture2.Error Save(@Cast(value="const char*") BytePointer pFilename, FlyCapture2.TIFFOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public FlyCapture2.Error Save(String pFilename, FlyCapture2.TIFFOption pOption)
@ByVal public FlyCapture2.Error Save(@Cast(value="const char*") BytePointer pFilename, FlyCapture2.JPEGOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public FlyCapture2.Error Save(String pFilename, FlyCapture2.JPEGOption pOption)
@ByVal public FlyCapture2.Error Save(@Cast(value="const char*") BytePointer pFilename, FlyCapture2.JPG2Option pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public FlyCapture2.Error Save(String pFilename, FlyCapture2.JPG2Option pOption)
@ByVal public FlyCapture2.Error Save(@Cast(value="const char*") BytePointer pFilename, FlyCapture2.BMPOption pOption)
pFilename - Filename to save image with.pOption - Options to use while saving image.@ByVal public FlyCapture2.Error Save(String pFilename, FlyCapture2.BMPOption pOption)
@ByVal public FlyCapture2.Error Convert(@Cast(value="FlyCapture2::PixelFormat") int format, FlyCapture2.Image pDestImage)
format - Output format of the converted image.pDestImage - Destination image.@ByVal public FlyCapture2.Error Convert(FlyCapture2.Image pDestImage)
pDestImage - Destination image.@ByVal public FlyCapture2.Error ReleaseBuffer()
Copyright © 2019. All rights reserved.