|
| | PixelFormatInfo (PixelFormat pixelFormat) |
| | Constructs a PixelFormatInfo object for the specified pixel format.
|
| |
| | PixelFormatInfo (string name) |
| | Constructs a PixelFormatInfo object from the name of a pixel format.
|
| |
| T | MinimumValuePerChannel< T > () |
| | Returns the minimum possible value per channel for the pixel format. Supports int (for integers) and float (for floating point) as type parameter.
|
| |
| int | MinimumValuePerChannel () |
| | Returns the minimum possible value per channel for the pixel format. This defaults to int for the type parameter.
|
| |
| T | MaximumValuePerChannel< T > () |
| | Returns the maximum possible value per channel for the pixel format. Supports int (for integers) and float (for floating point) as type parameter.
|
| |
| int | MaximumValuePerChannel () |
| | Returns the maximum possible value per channel for the pixel format. This defaults to int for the type parameter.
|
| |
| int | GetChannelIndex (Channel channel) |
| | Returns the index of a specific channel within the pixel format.
|
| |
| bool | HasChannel (Channel channel) |
| | Checks whether a specific channel is present in the pixel format.
|
| |
| ulong | GetSizeInBytes (Size size) |
| | Calculates the memory size in bytes for a given image size.
|
| |
| override bool | Equals (object? obj) |
| | Determines whether the specified object is equal to the current PixelFormatInfo.
|
| |
| override int | GetHashCode () |
| | Returns a hash code for the current pixel format.
|
| |
| override string | ToString () |
| | Returns a string representation of the pixel format info.
|
| |
|
| uint | StorageBitsPerPixel [get] |
| | The total number of bits used per pixel for storage.
|
| |
| uint | StorageBitsPerChannel [get] |
| | The number of bits used per channel for storage.
|
| |
| uint | AllocatedBitsPerPixel [get] |
| | The number of allocated bits per pixel.
|
| |
| string | Name [get] |
| | The human-readable name of the pixel format.
|
| |
| Channel[] | Channels [get] |
| | The list of channels in the pixel format.
|
| |
| bool | HasIntensityChannel [get] |
| | Checks whether the pixel format includes an intensity channel.
|
| |
| uint | NumberOfChannels [get] |
| | The total number of channels in the pixel format.
|
| |
| bool | IsSingleChannel [get] |
| | Whether the pixel format contains only a single channel.
|
| |
| PixelFormat | PixelFormat [get] |
| | The underlying pixel format enumeration value.
|
| |
| bool | IsPacked [get] |
| | Whether the pixel format is packed.
|
| |
| bool | IsFloat [get] |
| | Whether the pixel format uses floating points.
|
| |
| bool | IsInterleaved [get] |
| | Indicates whether the pixel format is interleaved.
|
| |
| PixelFormat | UnpackedPixelFormat [get] |
| | Returns the unpacked pixel format for a packed pixel format. If the pixel format is already unpacked, the same format is returned.
|
| |
Provides information and utility functions for pixel formats. The PixelFormatInfo class offers methods to query characteristics of specific pixel formats, such as value ranges, storage sizes, and channel configurations.
- Since
- IDSImaging.Peak.Common 1.3
Indicates whether the pixel format is interleaved.
Interleaved pixel formats arrange multiple image streams in memory using different patterns. The exact interleaving strategy depends on the pixel format family.
Mono*_A_B
Images A and B alternate by row:
-
Memory row 1: Image A (row 1)
-
Memory row 2: Image B (row 1)
-
Memory row 3: Image A (row 2)
-
Memory row 4: Image B (row 2)
-
…
Bayer*_A_B
Images A and B are grouped in pairs of rows:
-
Memory row 1: Image A (row 1)
-
Memory row 2: Image A (row 2)
-
Memory row 3: Image B (row 1)
-
Memory row 4: Image B (row 2)
-
Memory row 5: Image A (row 3)
-
Memory row 6: Image A (row 4)
-
Memory row 7: Image B (row 3)
-
Memory row 8: Image B (row 4)
-
…
Mono*_AB_CD
Four image streams (A, B, C, D) are interleaved within each row:
-
Memory row 1: | A | B | A | B | A | B |
-
Memory row 2: | C | D | C | D | C | D |
-
Memory row 3: | A | B | A | B | A | B |
-
Memory row 4: | C | D | C | D | C | D |
-
…