Commit 0ff4f10f authored by Turnhout, M.C. van's avatar Turnhout, M.C. van
Browse files

new figures Ruifrok amounts, remove sum

parent d7367a51
......@@ -17,7 +17,7 @@ figure
imshow(im)
for d = 1:3
for d = 1:2
figure
imshow(amounts(:, :, d)/norm(A(:, d)))
......@@ -26,27 +26,29 @@ for d = 1:3
end
figure
imshow(sum(amounts, 3)/16)
imshow(amounts(:, :, 3)/max(max(amounts(:, :, 3))))
colormap(gray)
colorbar
max(max(amounts(:,:,3)))
figure
imshow(uint8(round(P)))
imwrite(uint8(P), 'pics/flagJA2ry.png', 'PNG')
% imwrite(uint8(P), 'pics/flagJA2ry.png', 'PNG')
figure
imshow(uint8(round(Q)))
imwrite(uint8(Q), 'pics/flagJA2rg.png', 'PNG')
% imwrite(uint8(Q), 'pics/flagJA2rg.png', 'PNG')
figure
imshow(uint8(round(R)))
imwrite(uint8(R), 'pics/flagJA2rc.png', 'PNG')
% imwrite(uint8(R), 'pics/flagJA2rc.png', 'PNG')
figure
imshow(uint8(round(RGB)))
imwrite(uint8(RGB), 'pics/flagJA2rygc.png', 'PNG')
% imwrite(uint8(RGB), 'pics/flagJA2rygc.png', 'PNG')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment