I have an initial picture and make some calculations with the individual colour layers in a for-loop going through the 3 layers. In the end I want to stack them again to get the coloured version. Instead, I reveice nothing meaningful. What is wrong in the syntax?
for ii=1:3 ... end Img_R = uint8(abs(Img_x2(:,:,1))); Img_G = uint8(abs(Img_x2(:,:,2))); Img_B = uint8(abs(Img_x2(:,:,3))); pertImgRGB = cat(3,Img_R,Img_G,Img_B); figure(5); subplot(1,3,2); imagesc(x, y, pertImgRGB); axis square; set(gca,'YDir','normal')
Best Answer