How to do interpolate mri image in App Desginer?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have 256 dicom images in size 256x256.
I want to interpolate them but I don't know how many slices do i need for it.
I made 510 size of z axes using interp3 function and same size of x, y axes using resized function . I have no ideas...
%read dicom files
% inpertolate z axes to 510
[X, Y, Z] = meshgrid(1:256, 1:256, 1:256);
[Xq, Yq, Zq] = meshgrid(1:256, 1:256, 1:0.5:256);
app.interpImages = interp3(X, Y, Z, app.images, Xq, Yq, Zq, 'linear');
% make x, y axes to 510
app.resizedImages = zeros(510, 510, 510);
for i = 1:510
app.resizedImages(:, :, i) = imresize(app.interpImages(:, :, i), [510, 510]);
end
1 Kommentar
Rik
am 5 Jun. 2023
Your problem is not related to AppDesigner.
What exactly do you want to have happen? Do you want to resample 256x256x256 to 510x510x510?
Antworten (0)
Siehe auch
Kategorien
Mehr zu DICOM Format 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!