How to do interpolate mri image in App Desginer?

4 次查看(过去 30 天)
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 个评论
Rik
Rik 2023-6-5
Your problem is not related to AppDesigner.
What exactly do you want to have happen? Do you want to resample 256x256x256 to 510x510x510?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by