Class SpinnakerNET::ManagedImage¶
ClassList > SpinnakerNET > ManagedImage
The managed image object class.
#include <ManagedImage.h>
Inherits the following classes: SpinnakerNET::IManagedImage
Public Attributes¶
| Type | Name |
|---|---|
| property bool | HasChunkData |
| property SpinnakerNET::ImageStatus | ImageStatus |
Public Attributes inherited from SpinnakerNET::IManagedImage¶
See SpinnakerNET::IManagedImage
| Type | Name |
|---|---|
| property unsigned int | BitsPerPixel = /* multi line expression */ |
| property unsigned int | BufferSize = /* multi line expression */ |
| property bool | CheckCRC = /* multi line expression */ |
| property ManagedChunkData | ChunkData = /* multi line expression */ |
| property::System::UInt64 | ChunkLayoutID = /* multi line expression */ |
| property IntPtr | DataPtr = /* multi line expression */ |
| property::System::UInt64 | FrameID = /* multi line expression */ |
| property bool | HasCRC = /* multi line expression */ |
| property bool | HasChunkData = /* multi line expression */ |
| property unsigned int | Height = /* multi line expression */ |
| property::System::UInt64 | ID = /* multi line expression */ |
| property SpinnakerNET::ImagePayloadType | ImagePayloadType = /* multi line expression */ |
| property unsigned int | ImageSize = /* multi line expression */ |
| property SpinnakerNET::ImageStatus | ImageStatus = /* multi line expression */ |
| property bool | IsInUse = /* multi line expression */ |
| property bool | IsIncomplete = /* multi line expression */ |
| property array< byte > | ManagedData = /* multi line expression */ |
| property unsigned char * | NativeData = /* multi line expression */ |
| property unsigned int | OffsetX = /* multi line expression */ |
| property unsigned int | OffsetY = /* multi line expression */ |
| property unsigned int | PayloadType = /* multi line expression */ |
| property SpinnakerNET::PixelFormatEnums | PixelFormat = /* multi line expression */ |
| property::System::String | PixelFormatName = /* multi line expression */ |
| property unsigned char * | PrivateData = /* multi line expression */ |
| property::System::String | SerialNumber = /* multi line expression */ |
| property::System::UInt64 | StreamIndex = /* multi line expression */ |
| property unsigned int | Stride = /* multi line expression */ |
| property unsigned int | TLPayloadType = /* multi line expression */ |
| property::System::UInt64 | TLPixelFormat = /* multi line expression */ |
| property::System::UInt64 | TimeStamp = /* multi line expression */ |
| property unsigned int | ValidPayloadSize = /* multi line expression */ |
| property unsigned int | Width = /* multi line expression */ |
| property unsigned int | XPadding = /* multi line expression */ |
| property unsigned int | YPadding = /* multi line expression */ |
| property::System::Drawing::Bitmap | bitmap = /* multi line expression */ |
| property::System::Windows::Media::Imaging::BitmapSource | bitmapsource = /* multi line expression */ |
| property::System::Windows::Media::Imaging::WriteableBitmap | writeableBitmap = /* multi line expression */ |
Public Functions¶
Public Functions inherited from SpinnakerNET::IManagedImage¶
See SpinnakerNET::IManagedImage
Public Attributes Documentation¶
variable HasChunkData¶
Checks if the image contains chunk data
Returns:
Returns true if image contains chunk data and false otherwise.
variable ImageStatus¶
Returns data integrity status of the image returned from GetNextImage()
Returns:
Returns whether image has any data integrity issues.
Public Functions Documentation¶
function CalculateStatistics¶
virtual void SpinnakerNET::ManagedImage::CalculateStatistics (
ManagedImageStatistics ^ statistics
)
Calculates the statistics associated with an image. In order to collect statistics for a particular channel, the enabled flag for the channel must be set to true. Statistics can only be collected for images in Mono8, Mono16, RGB, RGBU, BGR and BGRU.
Parameters:
statisticsThe ManagedImageStatistics object to hold the statistics.
Implements SpinnakerNET::IManagedImage::CalculateStatistics
function ConvertToBitmapSource [1/2]¶
virtual void SpinnakerNET::ManagedImage::ConvertToBitmapSource (
SpinnakerNET::PixelFormatEnums format,
IManagedImage ^ destImage
)
Converts the current image buffer to the specified output pixel format, stores the result and populates the BitmapSource structure in destination image. The destination image does not need to be configured in any way before the call is made.
See also: PixelFormatEnums
Parameters:
formatThe output pixel format.destImageDestination image.
Implements SpinnakerNET::IManagedImage::ConvertToBitmapSource
function ConvertToBitmapSource [2/2]¶
virtual void SpinnakerNET::ManagedImage::ConvertToBitmapSource (
SpinnakerNET::PixelFormatEnums format,
IManagedImage ^ destImage,
SpinnakerNET::ColorProcessingAlgorithm algorithm
)
Converts the current image buffer to the specified output pixel format using specified color processing algorithm, stores the result and populates the BitmapSource structure in destination image. The destination image does not need to be configured in any way before the call is made.
See also: PixelFormatEnums
See also: ColorProcessingAlgorithm
Parameters:
formatThe output pixel format.destImageDestination image.algorithmColor processing algorithm for producing the destImage.
Implements SpinnakerNET::IManagedImage::ConvertToBitmapSource
function ConvertToWriteAbleBitmap [1/2]¶
virtual void SpinnakerNET::ManagedImage::ConvertToWriteAbleBitmap (
SpinnakerNET::PixelFormatEnums format,
IManagedImage ^ destImage
)
Converts the current image buffer to the specified output pixel format, stores the result and populates the WriteAbleBitmap structure in destination image. The destination image does not need to be configured in any way before the call is made.
See also: PixelFormatEnums
Parameters:
formatThe output pixel format.destImageDestination image.
Implements SpinnakerNET::IManagedImage::ConvertToWriteAbleBitmap
function ConvertToWriteAbleBitmap [2/2]¶
virtual void SpinnakerNET::ManagedImage::ConvertToWriteAbleBitmap (
SpinnakerNET::PixelFormatEnums format,
IManagedImage ^ destImage,
SpinnakerNET::ColorProcessingAlgorithm algorithm
)
Converts the current image buffer to the specified output pixel format using specified color processing algorithm, stores the result and populates the BitmapSource structure in destination image. The destination image does not need to be configured in any way before the call is made.
See also: PixelFormatEnums
See also: ColorProcessingAlgorithm
Parameters:
formatThe output pixel format.destImageDestination image.algorithmColor processing algorithm for producing the destImage.
Implements SpinnakerNET::IManagedImage::ConvertToWriteAbleBitmap
function DeepCopy¶
Performs a deep copy of the ManagedImage. After this operation, the contents and member variables of the ManagedImage and the copy are the same but the two ManagedImages do not share a buffer. The ManagedImage's current buffer is not released.
Parameters:
srcImageThe ManagedImage to copy the data from.
Implements SpinnakerNET::IManagedImage::DeepCopy
function GetBufferSize¶
Gets the size of the buffer associated with the image in bytes.
Returns:
The size of the buffer, in bytes.
Implements SpinnakerNET::IManagedImage::GetBufferSize
function ManagedImage [1/6]¶
Default constructor to create a managed image object.
function ManagedImage [2/6]¶
Copy constructor that creates a deep copy of the source ManagedImage.
Parameters:
srcImageThe ManagedImage to copy the data from.
function ManagedImage [3/6]¶
Creates an image object from file.
Parameters:
filenameName of the file to load an image object from.
See also: Save()
function ManagedImage [4/6]¶
SpinnakerNET::ManagedImage::ManagedImage (
unsigned int width,
unsigned int height,
unsigned int offsetX,
unsigned int offsetY,
SpinnakerNET::PixelFormatEnums pixelFormat,
void * pData
)
Default constructor to create a managed image object using some additional parameters.
See also: SpinnakerNET::PixelFormatEnums
Parameters:
widthThe image width in pixelsheightThe image height in pixelsoffsetXThe image x offsetoffsetYThe image y offsetpixelFormatThe image pixel formatpDataThe image data array
function ManagedImage [5/6]¶
SpinnakerNET::ManagedImage::ManagedImage (
unsigned int width,
unsigned int height,
unsigned int offsetX,
unsigned int offsetY,
SpinnakerNET::PixelFormatEnums pixelFormat,
void * pData,
SpinnakerNET::TLPayloadType dataPayloadType,
size_t dataSize
)
Create an image object with the specified parameters. This function is used to create an image from existing image data with a specific payload type, such as a compressed image.
Parameters:
widthThe image width in pixelsheightThe image height in pixelsoffsetXThe image X offsetoffsetYThe image Y offsetpixelFormatThe image pixel formatpDataThe compressed image datadataPayloadTypeThe payload type of the data. This value can be retrieved from an existing image by using the TLPayloadType() function call.dataSizeThe size of the provided data in bytes
See also: TLPayloadType()
function Release¶
Implements SpinnakerNET::IManagedImage::Release
function ResetImage [1/2]¶
virtual void SpinnakerNET::ManagedImage::ResetImage (
unsigned int width,
unsigned int height,
unsigned int offsetX,
unsigned int offsetY,
SpinnakerNET::PixelFormatEnums pixelFormat
)
Sets new dimensions of the image object and allocates memory.
Parameters:
widthThe width of image in pixels to set.heightThe height of image in pixels to set.offsetXThe x offset in pixels to set.offsetYThe y offset in pixels to set.pixelFormatPixel format to set.
Implements SpinnakerNET::IManagedImage::ResetImage
function ResetImage [2/2]¶
virtual void SpinnakerNET::ManagedImage::ResetImage (
unsigned int width,
unsigned int height,
unsigned int offsetX,
unsigned int offsetY,
SpinnakerNET::PixelFormatEnums pixelFormat,
void * pData
)
Sets new dimensions of the image object.
Parameters:
widthThe width of image in pixels to set.heightThe height of image in pixels to set.offsetXThe x offset in pixels to set.offsetYThe y offset in pixels to set.pixelFormatPixel format to set.pDataPointer to the image buffer.
Implements SpinnakerNET::IManagedImage::ResetImage
function Save [1/9]¶
Saves the image to the specified file name.
Parameters:
fileNameFilename to save image with.
function Save [2/9]¶
Saves the image to the specified file name with the file format specified.
Parameters:
fileNameFilename to save image with.formatFile format to save in.
function Save [3/9]¶
Saves the image to the specified file name with the options specified.
Parameters:
fileNameFilename to save image with.optionOptions to use for saving PNG images.
function Save [4/9]¶
Saves the image to the specified file name with the options specified.
Parameters:
fileNameFilename to save image with.optionOptions to use for saving PPM images.
function Save [5/9]¶
Saves the image to the specified file name with the options specified.
Parameters:
fileNameFilename to save image with.optionOptions to use for saving PGM images.
function Save [6/9]¶
Saves the image to the specified file name with the options specified.
Parameters:
fileNameFilename to save image with.optionOptions to use for saving TIFF images.
function Save [7/9]¶
Saves the image to the specified file name with the options specified.
Parameters:
fileNameFilename to save image with.optionOptions to use for saving JPEG images.
function Save [8/9]¶
Saves the image to the specified file name with the options specified.
Parameters:
fileNameFilename to save image with.optionOptions to use for saving JPG2 images.
function Save [9/9]¶
Saves the image to the specified file name with the options specified.
Parameters:
pFilenameFilename to save image with.pOptionOptions to use while saving image.
function operator=¶
function ~ManagedImage¶
Virtual destructor.
The documentation for this class was generated from the following file C:/workspace/src/SpinnakerNET/ManagedImage.h