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

new figure complementary amounts, remove sum

parent c518cbd5
......@@ -17,7 +17,7 @@ figure
imshow(im)
for d = 1:3
for d = 1:2
figure
imshow(amounts(:, :, d)/norm(A(:, d)))
......@@ -27,27 +27,28 @@ 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/flagJA2py.png', 'PNG')
% imwrite(uint8(P), 'pics/flagJA2py.png', 'PNG')
figure
imshow(uint8(round(Q)))
imwrite(uint8(Q), 'pics/flagJA2pg.png', 'PNG')
% imwrite(uint8(Q), 'pics/flagJA2pg.png', 'PNG')
figure
imshow(uint8(round(R)))
imwrite(uint8(R), 'pics/flagJA2pc.png', 'PNG')
% imwrite(uint8(R), 'pics/flagJA2pc.png', 'PNG')
figure
imshow(uint8(round(RGB)))
imwrite(uint8(RGB), 'pics/flagJA2pygc.png', 'PNG')
% imwrite(uint8(RGB), 'pics/flagJA2pygc.png', 'PNG')
min(amounts(:))
max(amounts(:))
......
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