28 internal const string OutputPixelFormatKey =
"OutputPixelFormat";
29 private readonly ImageConverterCInterface.Handle _handle;
36 var handle =
new ImageConverterCInterface.Handle();
37 DllHelper.ExecuteAndMapReturnCodes(() =>
38 ImageConverterCInterface.CInterface.peak_icv_Preprocessing_ImageConverter_Create(out handle));
43 public override string TypeId =>
"PixelFormatConversion";
56 GC.SuppressFinalize(
this);
86 var outputImageHandle =
new Image.Handle();
88 DllHelper.ExecuteAndMapReturnCodes(() =>
89 ImageConverterCInterface.CInterface.peak_icv_Preprocessing_ImageConverter_Convert(_handle,
93 return new Image(outputImageHandle);
114 DllHelper.ExecuteAndMapReturnCodes(() =>
115 ImageConverterCInterface.CInterface.peak_icv_Preprocessing_ImageConverter_ReleaseBuffers(_handle));
144 base.Serialize(archive);
174 base.Deserialize(archive);
Base class for all pipeline modules.
virtual bool IsEnabled
Get whether this module is enabled.
Constructs an Image from an IImageView Instance.
PixelFormat PixelFormat
Gets the pixel format from the image.
PixelFormat
Each enumerator represents a specific pixel layout and bit-depth, used for interpreting raw image dat...
Represents a hierarchical, strongly-typed key-value archive.
string GetString(string key)
Retrieves a string value by key.
void SetString(string key, string value)
Stores a string value under the specified key.