### MATLAB >> resize an image

Hi, everyone
Ihave an image 120x160x3, I can't use "res" because I don't have image
proc. tool box, but I hope you may know another way to do it,
imager's size is 4x4 inches, I want to have an area in the middle of
the image ,but the same px, i.e. 12x160...
thanks

### MATLAB >> resize an image

If you want to resize take a look at interp2. But your description
rather indicates that you want to crop a small region of the image:

SmallIm = Im(50:61, :, :);

-Herbert

```hello,
i urgently need a matlab code for resizing an image.
thank you.
```

```Hi

I wonder if it is possible to change interpolation from nearest
neighbour to bilinear, when viewing images using imagesc (or image), or
if the solution is to get the size of the figure window, and resize the
images first.

regards
Humbert

```

```hey,
Then i should set the parameter ( how much i wanna zoom the image :
*2 or *3 or *4 ... )
Then write the image (imwrite) to another filename

Well , my teacher told me that i have to import the image in a matrix
; and the in example if wanna double the size of the image , the
matrix becomes:

Original matrix : It becomes :
1 2 1 1 2 2
3 4 1 1 2 2
3 3 4 4
3 3 4 4

Anyone can help me plz .... i really tried a lot but all the
FUNCTIONS i've done doesn't run prperly :S
thx guys.
```

```Hello,

Just wanted to know if I am right or wrong on this one :

Basically I have a 1280*960 image.

How does resizing this image to half or even less its original size
affect it in terms of thresholding, edge detection, and morphological
operations.

I have also performed imadjust on the 1280*960 image with no major
difference, on the other hand I have cropped a portion of the image
300*300 and on performing imadjust, i have noticed a significant
difference in the output image.

I also noticed that when filling "holes" in the 1280*960 binary image,
it would not make any different, but when cropping a portion of the
originall image, and performing imholes, the result was fine.