Computer Exercises
- First-order image statistics. Write a MATLAB function named first_order_ stats that computes the first-order statistics of a set of images. Specifically, the function takes as inputs (a) a num_in × q dimensional array name_images, whose ith row contains the name of the ith image file, (b) the number N_gray specifying the range [0, N_gray − 1] in which the intensity of the pixels will be scaled. It returns a num_im × 4 dimensional matrix features, the ith row of which contains the mean, the standard deviation, the skewness and the kurtosis of the intensity of the pixels of the ith image.
Solution
In practice, it is more convenient to work with images where the intensity of the pixels lie in a rather small range of values ...
Get Pattern Recognition, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.