How to split an binary image into binary bit sequence?

Technical Source
1 min readAug 8, 2023

--

I have an binary image with size 256x256. I want to split the image into different number of bits. For example:

1 0 1 0 0 0 0 0 0 0 1 0 0 0 1 1 1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 1 0 1 0 1 1 1 1

I want to split it become like this:

[1 0 1 0 0 0 0 0 0 0 1] [0 0 0 1 1] [1 1 1 1] [0 0] [0 0 1] [1 1] [0 0 0 0 1 0 1 0 1 1 1 1]

So, i can use each part for next step.

Answer:

For an image, it’s the same concept — you can still use linear indexing like that if you want, or you can use 2D indexing if you want:

subImage = fullSizeBinaryImage(row1:row2, column1:column2);

for other assignment help please visit this site:

  1. matlabhelpers
  2. matlabsolutions
  3. programmingshark

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet