Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
blkproc

Subject: blkproc

From: madhuri madhuri

Date: 28 Oct, 2010 16:28:06

Message: 1 of 2

i need help regarding segmenting an image


im=imread('C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\sunset.jpg');
imshow(im)
imresizd=imresize(im, [256 256], 'bilinear')

now i need to segment this image to 16*16 blocks
using blkproc or for loop
plz help me

 

Subject: blkproc

From: Sean

Date: 28 Oct, 2010 17:05:06

Message: 2 of 2

"madhuri madhuri" <madhurimahadeshwar@yahoo.com> wrote in message <iac8al$2q4$1@fred.mathworks.com>...
> i need help regarding segmenting an image
>
>
> im=imread('C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\sunset.jpg');
> imshow(im)
> imresizd=imresize(im, [256 256], 'bilinear')
>
> now i need to segment this image to 16*16 blocks
> using blkproc or for loop
> plz help me
>
>

What are you having an issue with?
I = imread('cameraman.tif');
imshow(blkproc(I,[16 16],@(x)median(x(:))*ones(size(x),class(x))))

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us