Representing the ROI for each slice of a grayscale 3D image

조회 수: 4 (최근 30일)
JoaquinB
JoaquinB 2020년 2월 19일
편집: JoaquinB 2020년 2월 19일
Hello,
I do have a grayscale 3D image(280x3072x80) being 80 the slices number.
I generated a ROI for each slice and i store the position of the vertex of the polygon in a cell array( ROI_pos, 15x1x80, where each cell contains 2 columns [x y])
I would like to plot that ROI in front of the image,
I can do it for one slice(for example 20) with the following code
figure()
imshow3D(GL_project(:,:,20))
hold on
plot(abs(ROI_pos{1,1,20}(:,1)),abs(ROI_pos{1,1,20}(:,2)),'LineWidth',1)
But if i would like to see slice 20 i would need to be changing manually the slice number.
Is there any way to represent the ROIs for each slices in the same figure (with a slider like imshow3D or sliceViewer so when i go through all the slices I can see the ROI applied to that slice)
I tried 3D plotting, insertMarker,converting to a RGB image and colouring the pixels,etc but it didnt give me good results.
Thanks a lot.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by