binary image to matrix of 10 by 5 matrix

1 view (last 30 days)
talha ali
talha ali on 16 Oct 2019
Answered: Image Analyst on 16 Oct 2019
i want to convert binary image to 10 by 5 matrix of each matrix 8 pixels.what should I do???

Answers (1)

Image Analyst
Image Analyst on 16 Oct 2019
Not sure what this means - what does 8 pixels have to do with anything. To convert your binary image to a size of 10 by 5, use imresize():
binaryImage = imresize(binaryImage, [10, 5]);

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!