Summary: This test determines whether a fish is a salmon or a trout based on the relative intensities of the red component versus the blue and green components
Intensity testing Image![]() Figure 1: Fish intensity testing broken into red, green, and blue. |
% Check to see how much intensity there is in each of the color spectrums
for i = 1:3
fishnorm(:,:,i) = fishimage(:,:,i)./norm((fishimage(:,:,i)));
intensitymatrix(:,:,i) = reshape(fishimage(:,:,i), 1, prod(size(fishimage(:,:,1))));
intensity(:,:,i) = mean(intensitymatrix(:,:,i));
end
rgintens = intensity(:,:,1)-intensity(:,:,2);
rbintens = intensity(:,:,1)-intensity(:,:,3);