how to split a image?

3 views (last 30 days)
win
win on 4 Apr 2013
Commented: fateh on 2 Jun 2014
dear programmers i am newbie here. i need to split a image into 8x8 pixels. please give the simple code.

Accepted Answer

Walter Roberson
Walter Roberson on 4 Apr 2013
SplitImage = mat2cell( OriginalImage, 8 * ones(1,size(OriginalImage,1)/8), 8 * ones(1,size(OriginalImage,2)/8), size(OriginalImage,3) );
  3 Comments
Tia
Tia on 15 Jul 2013
hello.. could you tell me how to call splitImage(1,1).. example:
splitImage(1,1)=splitImage(1,3)
i want to move it. is it possible? thanks
fateh
fateh on 2 Jun 2014
how do i split image file into 4096 bytes per each fragment...and find out its compression ratio
need ur guidance plz...

Sign in to comment.

More Answers (2)

Image Analyst
Image Analyst on 17 Jul 2013

praveen
praveen on 20 Oct 2013
how to split image into 4*4 matrix
  1 Comment
Image Analyst
Image Analyst on 20 Oct 2013
Didn't you see my answer above?

Sign in to comment.

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!