IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
BinningFeature.cs
Go to the documentation of this file.
4
6
44{
45 private readonly DownsamplingModule _module;
46
54 {
55 _module = module;
56 }
57
61 public uint X
62 {
63 get => _module.X;
64 set => _module.X = value;
65 }
66
70 public uint Y
71 {
72 get => _module.Y;
73 set => _module.Y = value;
74 }
75
83 public IntervalU Range => _module.Range;
84
89 {
90 get => (BinningMode) _module.Mode;
91 set
92 {
93 if (!Enum.IsDefined(typeof(BinningMode), value))
94 {
95 throw new IcvNotSupportedException($"The binning mode {value} is not supported.");
96 }
97
98 _module.Mode = (DownsamplingMode) value;
99 }
100 }
101
103 public bool IsEnabled
104 {
105 get => _module.IsEnabled;
106 set => _module.IsEnabled = value;
107 }
108
116 public void ResetToDefault()
117 {
118 _module.ResetToDefault();
119 }
120}
Represents an interval with unsigned integer boundaries.
Definition Interval.cs:137
Represents a range with signed integer boundaries.
Definition Range.cs:139
Range(int minimum, int maximum, int increment)
Initializes a new instance of the Range class with specified minimum, maximum, and increment values.
Definition Range.cs:147
Occurs when a requested operation is not implemented or supported (e.g., exporting to an unsupported ...
Definition Exception.cs:62
Binning is used to decrease the image size.
BinningFeature(DownsamplingModule module)
Creates a BinningFeature for a downsampling module.
uint Y
The current number of rows used for binning.
bool IsEnabled
Enables or disables the feature.
void ResetToDefault()
Resets the binning feature to the default values.
uint X
The current number of columns used for binning.
Downsampling is used to decrease the image size.
DownsamplingMode
Mode parameter for the downsampling algorithm.
BinningMode
Mode parameter for the binning algorithm.
Definition BinningMode.cs:9
Abstract base class for all image processing pipeline features.
Definition IFeature.cs:64