View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Block Division using cell

3.0 | 1 rating Rate this file 11 Downloads (last 30 days) File Size: 1.77 KB File ID: #40443 Version: 1.0
image thumbnail

Block Division using cell


Suraj Kamya (view profile)


Using cell data type one can effectively breaks the 2D/3D data in to required no. of blocks.

| Watch this File

File Information

Two functions are provided; one to break the data in blocks and another one to recombine them in proper order.
- Code given can break any 2d image into 8*8 blocks and put them in a cell. For ex. function assumes the input image of size 512x512 and it will break this image in to 4096 blocks of 8x8 elements each.
- One can perform desired operation on each block individually like watermarking, enhancement etc.
- After processing second function accept 4096 blocks (a single cell) as input and gives back original image back.

Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
19 Feb 2017 priya dnanabal

how use this code....

03 Jan 2017 xiao8572

Thanks , code is perfect.

Comment only
23 Feb 2013 Suraj Kamya

Suraj Kamya (view profile)

Thank you

Comment only
22 Feb 2013 Jurgen

Jurgen (view profile)

See imsplit (File ID: #40173) for more options.

Also, cell2mat should be an faster way to glue the blocks back together.

Comment only

Contact us