Reference

Table of Contents  ▸  List of Commands  ▸  User KaRo's CLI functions  ▸  hist_feature◀  karo_morpho    |    hist_feature_demo  ▶

hist_feature

Arguments:

Description:

Estimation from histogram (frequency dist, 1d image) the features

 mode,sum (m0),mean (m1),SD (m2),min,max,median,iqr (hiq-loq+1),loq,hiq returned in status (${}).
nofeature=-2 mode,m0,m1,m2,min,max,med,iqr,loq,hiq,
  -1 mode,0 sum,1 mean,2 SD,3 min,4 max,5 median,
   6 iqr (interquantile range),7 loq (lower quantile),8 hiq (higer qunatile)
nth extreme value (nth+1 occurence!)
zero Class 0 is zeroed if !=0
min0 value of class 0
stepw value of class width (bin size)
percent quantile
Default valalues: _nofeature=-2, _nth=1, _zero=0, _min0=0, _stepw=1, _percent=25%
Updated 140314 (smoothing replaced by nth selection)
Updated 100817 (percent parameter and iqr,loq,hiq feature added)

Example of use:

$ gmic sp tiger luminance +histogram 256,0,255 dh.. ,,256,0,255 hist_feature , repeat 8 t={_arg($>+1${})} text $t,40,{$>*25+5},23,1,128 done rm.

Command: sp tiger luminance +histogram 256,0,255 dh.. ,,256,0,255 hist_feature , repeat 8 t={_arg($>+1${})} text $t,40,{$>*25+5},23,1,128 done rm.