% Extract the channel green.
img = imread('DSC_0315.JPG');green = img;subplot(2,2,1);imshow(img);green(:,:,1:2:3)=0;subplot(2,2,2);imshow(green); title ('Green channel');%%convert to greyscale
imgray1 = rgb2gray(green);subplot(2,2,3);imshow(imgray1);title ('Grayscale');%%Thresholding
imA =imgray1>66;figure;imshow(imA);
MATLAB: Hello everyone, how do i count the white pixels of a image after setting the threshold
pizels
Related Question
- How to show four sub sections of two images separately in a single window??
- How to get back the rgb image from r g b component
- Do I obtain only ones when I use STRETCHLIM function on an image in the Image Processing Toolbox 5.3 (R2006b)
- How to create an image by replacing each pixel with mean RGB value.
Best Answer