image=imread("101_img_.png");[R,C,~]=size(image);Red=image(:,:,1);Green=image(:,:,2);Blue=image(:,:,3)red_norm=zeros(size(Red));red_norm=(Red - min(Red(:)))./(max(Red(:))-min(Red(:)));green_norm=zeros(size(Green));green_norm=(Green - min(Green(:)))./(max(Green(:))-min(Green(:)));red_norm_sum=sum(red_norm(:));disp(green_norm);
MATLAB: The output matrix values are either 0 or 1 but i want it between [0,1]
#matrix #decimal #decimalvales
Related Question
- I have an image with red,yellow and green pixels. How to find the percentage of yellow pixels
- Can you help me? i want to show min and max value on RGB image with histogram, but is not work correctly
- GREEN color and BROWN COLOR pixel counting in an image
- Segmenting or Thresholding Blue
- Subscript indices must either be real positive integers or logicals
Best Answer