How do you shrink multiple images without using imresize or imcrop?

2 vues (au cours des 30 derniers jours)
MK
MK le 19 Nov 2018
Commenté : Image Analyst le 20 Nov 2018
I have to shrink 20 images to 129 x 120 without cutting off any of the image and without using imresize or imcrop.

Réponses (1)

Image Analyst
Image Analyst le 19 Nov 2018
You could use interp2() or else just write your own code to do the same things as the functions you (for some reason) don't want to use.
  2 commentaires
MK
MK le 19 Nov 2018
I am not allowed to use those functions on my homework assignment. Could you show me how to start the code for them?
Image Analyst
Image Analyst le 20 Nov 2018
You could first figure out what coordinates in the input image the value should come from. Chances are it will land between 4 input pixels. So you can use bilinear interpolation.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by