Here is an example code for manual pixel selection for grow cut segmentation, automated segmentation based on pixel intensity values within 100, and applying the segmentation to subsequent slices in Matlab:
main.m1113 chars38 lines
Note: This code assumes that the input image is a 3D stack of grayscale images stored in a multi-page TIFF file. The region_seg
function used in this code can be downloaded from the MATLAB File Exchange.
gistlibby LogSnag