Plotting points on a GUI using imshow3D

2 visualizzazioni (ultimi 30 giorni)
Mebiame
Mebiame il 3 Lug 2017
Modificato: Mebiame il 7 Lug 2017
Hello,
I am fairly new to AMTLAB, and I am using the 'imshow3D' GUI for displaying 3D images and using the slider to switch through each slices. I wish to plot points on specific slices.
Each points have an X,Y, and Z component (Z being the slice number). I have tried using the code below;
[I,J,Z] = ind2sub(size(Eroded_EntropyFilterQ_3D_n16_pt3_Filter5_Struct_pt31012),cursor_info1(:,3))
figure,imshow3D(Eroded_EntropyFilterQ_3D_n16_pt3_Filter5_Struct_pt31012)
hold on
plot(J,I,'ro')
The points do plot in the slice viewer, however I get an error when switching through the slices, and the points appear on every slices.
Is there a way to fix this problem?
Thank you so much!

Risposte (0)

Categorie

Scopri di più su Modify Image Colors in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by