How to do interpolate mri image in App Desginer?

1 回表示 (過去 30 日間)
민주 곽
민주 곽 2023 年 6 月 5 日
コメント済み: Rik 2023 年 6 月 5 日
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 Center および File ExchangeDICOM Format についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by