Effacer les filtres
Effacer les filtres

i have an image of lena whose size is 512*512. i want to resize it to 256*256 ?

6 vues (au cours des 30 derniers jours)
kitty varghese
kitty varghese le 11 Août 2017
Commenté : Image Analyst le 14 Août 2017
close all;
clear all;
clc;
v=imread('lena512.pgm');
v=imresize(v,[256 256]);
  4 commentaires
Jan
Jan le 14 Août 2017
@kitty: Do you see, that the code is not readable? Please use the "{} code" button, because it should be your interest to post readable code.
The posted code does not contain any command to display an image. Therefore it is not clear, how the code is related to your question. Please do not let the readers guess, what your problem is.
Image Analyst
Image Analyst le 14 Août 2017
Other than getting it's dimensions, the badly-named "v" does not seem to be used. Your resize code is correct though.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by