Borrar filtros
Borrar filtros

How to do interpolate mri image in App Desginer?

4 visualizaciones (últimos 30 días)
민주 곽
민주 곽 el 5 de Jun. de 2023
Comentada: Rik el 5 de Jun. de 2023
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 comentario
Rik
Rik el 5 de Jun. de 2023
Your problem is not related to AppDesigner.
What exactly do you want to have happen? Do you want to resample 256x256x256 to 510x510x510?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by