MATLAB: Ab = double(lab_he(:,:,2:3)); nrows = size(ab,1); ncols = size(ab,2); ab = reshape(ab,nrows*ncols,2);
kmeans clustering algorithm
ab = double(lab_he(:,:,2:3)) what this line means?
Best Answer
lab_he(:, :, 2:3)
is the [M x N x 2] subarray taken from the [M x N x P] array called lab_he.double() converts it to the type double.
These are elementary Matlab methods. If is not efficient to ask such general and basic questions in the forum. Better read the "Getting Started" chapters of the documentation to learn how to use this powerful language.
My understanding is that there are two parts to this: (1) use a different transform name on the makecform; and (2) use different weightings on the planes, as the sensitivities show up in different ratios in the different color spaces.
Best Answer