Name
imhist - get the histogram of an imageCalling Sequence
[counts, cells] = imhist(im)Parameters
[counts, cells] = imhist(im, bins)
[counts, cells] = imhist(im, bins [,width [,color]])
im
An image, which can be a boolean, uint8, int8, uint16, int16, int32 or double imagebins
The number of bins of the histogram. If bins is not specified, the function will used default value which determined by the image type: 2 for boolean, 2^8 for uint8 and int8, 2^16 for uint16 and int16, 2^16 for int32(2^32 will need huge computer memory), and 10 for double.width
This argument will be sent to the bar function. It is a real scalar, defines the width(a percentage of the available room) for the bar(default: 0.8,i.e. 80%)color
This argument will be sent to bar function. It is a string(default: 'blue'), specifying the inside color bar.counts
the returned histogramcells
the intervals for bins---------------------------------------------------------------------------------------------------------------
So here it is. Just place it with the bar function to get a histogram figure.
No comments:
Post a Comment