To manually select pixels for grow-cut segmentation, you can use the roipoly function in Matlab. This allows you to select a region of interest (ROI) by manually clicking on the pixels you want to include in the ROI.
main.m496 chars18 lines
In the code above, img is the input image and num_slices is the total number of slices to apply the segmentation to. The ischanged function can also be used to check if the ROI has been modified between slices, and if so, update the bw mask before applying the segmentation to the current slice.
gistlibby LogSnag