Histogram of a gray image in MATLAB
TheimhistfunctionreturnsthehistogramcountsincountsandthebinlocationsinbinLocations.Thenumberofbinsinthehistogramisdeterminedbythe ...,imhistdisplaysahistogramofagrayscaleorbinaryimages.Usergb2grayontheimage,oruseimhist(input(:,:,1))toseeoneofthe ...。參考影片的文章的如下: