i am working on a project of image processing & i need to convert an image into vector of 0 & 1.in this each pixel needs to be replaced by its binary equivalent
if anyone knows plz help
If your image is an indexed or grayscale image, it is just a matter of comparing the image to a pre-defined threshold. You will need to adjust this threshold based on which features of the image you want to be a 1.
threshold = 0.5; %or some other threshold BW = (myImage >= threshold); %this will be a matrix of ones and zeros.
Play games and win prizes!Learn more