calculateParameter
double[][] calculateParameter(double[][] bImage)
This polymorphic method is designed to compute any of the 10 parameters
at a time. It iterates over the given image, patch by patch, and then in
every patch, pixel by pixel, to compute the parameter value for each
patch.
Note: In all the classes, matrices are read and write, row by row.
Note: It is required that each class works independently, meaning
that they must rely on their own computations. Therefore, some
calculations (e.g. mean intensity value) might be calculated several
times for different parameters (e.g. once for skewness and another
time for std. deviation).
Note: No fixed range for the color intensity values of the given
images is assumed. (colors do not have to be within the range [0,255].)
- Parameters:
bImage
- a 2D array representing the input image for which the parameter
should be computed.
- Returns:
- a 2D matrix whose each entry corresponds to the calculated
parameter for one particular patch of the image.