Name
gray_histo_range gray_histo_range GrayHistoRange GrayHistoRange — Calculate the gray value distribution of a single channel image within a
certain gray value range.
Herror gray_histo_range (const Hobject Regions , const Hobject Image , double Min , double Max , const Hlong NumBins , Hlong* Histo , double* BinSize )
Herror T_gray_histo_range (const Hobject Regions , const Hobject Image , const Htuple Min , const Htuple Max , const Htuple NumBins , Htuple* Histo , Htuple* BinSize )
void GrayHistoRange (const HObject& Regions , const HObject& Image , const HTuple& Min , const HTuple& Max , const HTuple& NumBins , HTuple* Histo , HTuple* BinSize )
HTuple HImage ::GrayHistoRange (const HRegion& Regions , const HTuple& Min , const HTuple& Max , Hlong NumBins , double* BinSize ) const
Hlong HImage ::GrayHistoRange (const HRegion& Regions , double Min , double Max , Hlong NumBins , double* BinSize ) const
HTuple HRegion ::GrayHistoRange (const HImage& Image , const HTuple& Min , const HTuple& Max , Hlong NumBins , double* BinSize ) const
Hlong HRegion ::GrayHistoRange (const HImage& Image , double Min , double Max , Hlong NumBins , double* BinSize ) const
static void HOperatorSet .GrayHistoRange (HObject regions , HObject image , HTuple min , HTuple max , HTuple numBins , out HTuple histo , out HTuple binSize )
HTuple HImage .GrayHistoRange (HRegion regions , HTuple min , HTuple max , int numBins , out double binSize )
int HImage .GrayHistoRange (HRegion regions , double min , double max , int numBins , out double binSize )
HTuple HRegion .GrayHistoRange (HImage image , HTuple min , HTuple max , int numBins , out double binSize )
int HRegion .GrayHistoRange (HImage image , double min , double max , int numBins , out double binSize )
gray_histo_range gray_histo_range GrayHistoRange GrayHistoRange GrayHistoRange calculates the gray value distribution
Histo Histo Histo Histo histo of the single channel Image Image Image Image image within Regions Regions Regions Regions regions
and the gray value range [Min Min Min Min min ,Max Max Max Max max ]. The values for
Min Min Min Min min and Max Max Max Max max are rounded down to the next integer if the
Image Image Image Image image is not of type 'real' "real" "real" "real" "real" . The gray value range is divided
into NumBins NumBins NumBins NumBins numBins bins of the same size, which is returned in
BinSize BinSize BinSize BinSize binSize . If a gray value lies between two bins the gray value is
assigned to the smaller bin. If the Image Image Image Image image is of type 'real' "real" "real" "real" "real"
.
If the Image Image Image Image image has discrete gray values the size of a bin is
computed with
. Since the accuracy of the histogram Histo Histo Histo Histo histo can
be adjusted with NumBins NumBins NumBins NumBins numBins , the calculation of the gray value
histogram with gray_histo_range gray_histo_range GrayHistoRange GrayHistoRange GrayHistoRange is most useful for images of type
'real' "real" "real" "real" "real" and images of type 'integer' "integer" "integer" "integer" "integer" , which have
a high bit depth.
Note that the operator gray_histo_range gray_histo_range GrayHistoRange GrayHistoRange GrayHistoRange only considers
the given Regions Regions Regions Regions regions and ignores any previously set domain
of the input image Image Image Image Image image .
If the Image Image Image Image image has discrete gray values the value of BinSize BinSize BinSize BinSize binSize
may cause the following effects:
For BinSize BinSize BinSize BinSize binSize > 1 multiple neighboring gray values are
assigned to the same bin. If BinSize BinSize BinSize BinSize binSize is no integer the gray values
are distributed uneven among the bins, e.g., for
BinSize BinSize BinSize BinSize binSize = 1.5 the first and second gray value are
assigned to the first bin, the third gray value is assigned to the second
bin, and the fourth and fifth gray value are assigned to the third bin.
This becomes noticeable in several peeks in the histogram Histo Histo Histo Histo histo .
If BinSize BinSize BinSize BinSize binSize < 1 some classes are not assigned by any
gray value, e.g., for BinSize BinSize BinSize BinSize binSize = 0.5 the first
gray value is assigned to the first bin and the second gray value is assigned
to the third bin. The histogram Histo Histo Histo Histo histo shows some gaps, which
resembles the structure of a comb.
If the Image Image Image Image image is of type 'real' "real" "real" "real" "real" and
Min Min Min Min min = Max Max Max Max max , all pixels of the corresponding gray value
are assigned only to the first bin.
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Automatically parallelized on internal data level.
Region in which the histogram is to be calculated.
Minimum gray value.
Default value: 0
Suggested values: 0
Maximum gray value.
Default value: 255
Suggested values: 255
Restriction: Max >= Min
Number of bins.
Default value: 256
Suggested values: 16, 32, 64, 128, 256
Restriction: NumBins >= 1
Histogram to be calculated.
If the parameters are valid, the operator gray_histo_range gray_histo_range GrayHistoRange GrayHistoRange GrayHistoRange
returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.
min_max_gray min_max_gray MinMaxGray MinMaxGray MinMaxGray
create_funct_1d_array create_funct_1d_array CreateFunct1dArray CreateFunct1dArray CreateFunct1dArray
gray_histo gray_histo GrayHisto GrayHisto GrayHisto ,
gray_histo_abs gray_histo_abs GrayHistoAbs GrayHistoAbs GrayHistoAbs
histo_2dim histo_2dim Histo2dim Histo2dim Histo2dim ,
scale_image_max scale_image_max ScaleImageMax ScaleImageMax ScaleImageMax
Foundation