image - Converting array into grayscale in matlab -
i trying plot set of data in grayscale. however, image seems blue.
i have set of data, albedo
ranges [0, 0.068]
, 1x1 double
.
my code is:
px,py albedomax = 0.0679; albedomin = 0; out_im(px,py) = 1/(albedomax-albedomin)*(albedo - albedomin); imshow(out_im); drawnow; end
basically px,py
image coordinates have iterate over, , formula trying map input range of [0, 0.068]
[0 1]
. however, running code, notice output blueish. wondering went wrong.
thanks help.
can't make use of rgb2gray function?
Comments
Post a Comment