upsampling of an image

Status
Not open for further replies.

usman

Junior Member level 3
Joined
Aug 4, 2005
Messages
27
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Activity points
1,502
AOA!
how can i upsample an image. downsample is easy just not read the next pixel value. i tried read an image to m. and then tried m(1:0.5:end, 1:0.5:end) for upsampling but that didn't work, a warning "Warning: Integer operands are required for colon operator when used as index" is generated, so plz help me if any body knows something.

regards,
 

I did not realy understand what u mean.If u want to unsample an already sampled signal,then i think this book can be of help.Otherwise explain your question again.
 

you will need to do interpolation to get the pixel values for upsampling.
 

i mean i have an image 256x256. i want to upsample this image, how can i?
 

From 256x256, you can do pixel replication OR biliinear interpolation OR cubic interpolation to upsample your image. Here is a link I found which gives implementation code to upsample image using sinc function:
**broken link removed**
Hope this helps.
 

u can use the following code:

(eg):

im=imread('rice.tif');
x=upsample(im,f);

where f is the upsampling factor
u may choose ur own value for "f" (eg:2 or 3)
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…