필터 지우기
필터 지우기

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

조회 수: 6 (최근 30일)
kitty varghese
kitty varghese 2017년 8월 11일
댓글: Image Analyst 2017년 8월 14일
close all;
clear all;
clc;
v=imread('lena512.pgm');
v=imresize(v,[256 256]);
  댓글 수: 4
Jan
Jan 2017년 8월 14일
@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 2017년 8월 14일
Other than getting it's dimensions, the badly-named "v" does not seem to be used. Your resize code is correct though.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by