how to resize images
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
mohd akmal masud
am 5 Jan. 2021
Bearbeitet: KALYAN ACHARJYA
am 5 Jan. 2021
Hi all,
If i want to resize my image from to 103 to 128, is it correct my coding?
clear all
clc
P = zeros(103, 103, 60);
for K = 1 : 60
K_file=30+10*K;
petname = sprintf('I%d.dcm', K_file);
P(:,:,K) = dicomread(petname);
P(:,:,K) = imresize(P(:,:,K),[128 128])
end
imshow3D(P)
1 Kommentar
KALYAN ACHARJYA
am 5 Jan. 2021
Bearbeitet: KALYAN ACHARJYA
am 5 Jan. 2021
"resize my image from to 103 to 128"
What does it mean? Original Image: Is that 2D or 3D case? Size.. .?? Please refer the suggested link to get more info
https://in.mathworks.com/help/matlab/ref/imresize.html
Akzeptierte Antwort
KSSV
am 5 Jan. 2021
First read the documentation of imresize. Run an example given out there. Understand it and then use the functio. Get the scale and the go by it.
scale = 128/103 ;
Pi = imresize(P,scale) ; % where P is your 103*103 3D matrix
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Preview and Device Configuration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!