@@ -852,6 +852,7 @@ function updateSlice(f, evt, allData, slice_figure, save_location)
852852 ud_slice.pointList = transform_data.transform_points{2 };
853853 else
854854 ud_slice.pointList = [];
855+ ud.pointHands_for_transform = gobjects(0 );
855856 end
856857 set(slice_figure , ' UserData' , ud_slice );
857858
@@ -868,6 +869,9 @@ function updateSlice(f, evt, allData, slice_figure, save_location)
868869 ud.curr_slice_num = ud .slice_at_shift_start + ud .slice_shift ;
869870
870871 ud.histology_overlay = 1 ;
872+
873+ ud.pointsText.String = sprintf(' %d point(s)' , length(ud .pointHands_for_transform ));
874+
871875
872876 set(ud .text ,' Visible' ,' off' );
873877 fill([5 5 250 250 ],[5 50 50 5 ],[0 0 0 ]); ud .text(end + 1 ) = text(5 ,15 ,[' Slice ' num2str(ud .slice_at_shift_start + ud .slice_shift )],' color' ,' white' );
@@ -880,7 +884,9 @@ function updateSlice(f, evt, allData, slice_figure, save_location)
880884 set(ud .im , ' CData' , ud .ref );
881885 ud.curr_im = ud .ref ; set(f , ' UserData' , ud );
882886 set(ud .text ,' Visible' ,' off' );
883- fill([5 5 250 250 ],[5 50 50 5 ],[0 0 0 ]); ud .text(end + 1 ) = text(5 ,15 ,[' Slice ' num2str(ud .slice_at_shift_start + ud .slice_shift ) ' - no transform' ],' color' ,' white' );
887+ fill([5 5 250 250 ],[5 50 50 5 ],[0 0 0 ]); ud .text(end + 1 ) = text(5 ,15 ,[' Slice ' num2str(ud .slice_at_shift_start + ud .slice_shift ) ' - no transform' ],' color' ,' white' );
888+ ud.pointsText.String = sprintf(' %d point(s)' , length(ud .pointHands_for_transform ));
889+
884890 end
885891
886892end
0 commit comments