The operator shape_histo_allshape_histo_allShapeHistoAllShapeHistoAllShapeHistoAll carries out 255 threshold
operations within RegionRegionRegionRegionregion with the gray values of
ImageImageImageImageimage. The entry i in the histogram corresponds to the
number of connected components/holes of this image segmented with
the threshold i (FeatureFeatureFeatureFeaturefeature =
'connected_components'"connected_components""connected_components""connected_components""connected_components", 'holes'"holes""holes""holes""holes") or the mean
value of the feature values of the regions segmented in this way
(FeatureFeatureFeatureFeaturefeature = 'convexity'"convexity""convexity""convexity""convexity", 'compactness'"compactness""compactness""compactness""compactness",
'ansisometry'"ansisometry""ansisometry""ansisometry""ansisometry"), respectively.
The operator shape_histo_allshape_histo_allShapeHistoAllShapeHistoAllShapeHistoAll expects a region and exactly
one gray value image as input. Because of the power of this
operator the runtime of shape_histo_allshape_histo_allShapeHistoAllShapeHistoAllShapeHistoAll is relatively large!
Note that the operator shape_histo_allshape_histo_allShapeHistoAllShapeHistoAllShapeHistoAll only considers
the given RegionRegionRegionRegionregion and ignores any previously set domain
of the input image ImageImageImageImageimage.
List of values: 'anisometry'"anisometry""anisometry""anisometry""anisometry", 'compactness'"compactness""compactness""compactness""compactness", 'connected_components'"connected_components""connected_components""connected_components""connected_components", 'convexity'"convexity""convexity""convexity""convexity", 'holes'"holes""holes""holes""holes"
* Simulation of shape_histo_all with feature 'connected_components':
* my_shape_histo_all(Region,Image,AbsHisto,RelHisto):
reduce_domain(Region,Image,RegionGray)
for i := 0 to 255 by 1
threshold(RegionGray,Seg,i,255)
connect_and_holes (Seg, NumConnected, _)
AbsHisto[i] := NumConnected
endfor
Sum := 0
for i := 0 to 255 by 1
Sum := Sum+AbsHisto[i]
endfor
for i := 0 to 255 by 1
RelHisto[i] := AbsHisto[i]/Sum
endfor
* Simulation of shape_histo_all with feature 'connected_components':
* my_shape_histo_all(Region,Image,AbsHisto,RelHisto):
reduce_domain(Region,Image,RegionGray)
for i := 0 to 255 by 1
threshold(RegionGray,Seg,i,255)
connect_and_holes (Seg, NumConnected, _)
AbsHisto[i] := NumConnected
endfor
Sum := 0
for i := 0 to 255 by 1
Sum := Sum+AbsHisto[i]
endfor
for i := 0 to 255 by 1
RelHisto[i] := AbsHisto[i]/Sum
endfor
* Simulation of shape_histo_all with feature 'connected_components':
* my_shape_histo_all(Region,Image,AbsHisto,RelHisto):
reduce_domain(Region,Image,RegionGray)
for i := 0 to 255 by 1
threshold(RegionGray,Seg,i,255)
connect_and_holes (Seg, NumConnected, _)
AbsHisto[i] := NumConnected
endfor
Sum := 0
for i := 0 to 255 by 1
Sum := Sum+AbsHisto[i]
endfor
for i := 0 to 255 by 1
RelHisto[i] := AbsHisto[i]/Sum
endfor
* Simulation of shape_histo_all with feature 'connected_components':
* my_shape_histo_all(Region,Image,AbsHisto,RelHisto):
reduce_domain(Region,Image,RegionGray)
for i := 0 to 255 by 1
threshold(RegionGray,Seg,i,255)
connect_and_holes (Seg, NumConnected, _)
AbsHisto[i] := NumConnected
endfor
Sum := 0
for i := 0 to 255 by 1
Sum := Sum+AbsHisto[i]
endfor
for i := 0 to 255 by 1
RelHisto[i] := AbsHisto[i]/Sum
endfor