Help on class ImageGraphCut in module imcut.pycut:
class ImageGraphCut(builtins.object)
| Interactive Graph Cut.
|
| ImageGraphCut(data, zoom, modelparams)
| scale
|
| Example:
|
| igc = ImageGraphCut(data)
| igc.interactivity()
| igc.make_gc()
| igc.show_segmentation()
|
| Methods defined here:
|
| __init__(self, img, modelparams={}, segparams={}, voxelsize=[1, 1, 1], debug_images=False, volume_unit='mm3', interactivity_loop_finish_fcn=None)
| Args:
| img: input data
| modelparams: parameters of model
| segparams: segmentation parameters
| use_apriori_if_available - set self.apriori to ndimage with same shape as img
| apriori_gamma: influence of apriory information. 0 means no influence, 1.0 is 100% use of
| apriori information
| voxelsize: size of voxel
| debug_images: use to show debug images with matplotlib
| volume_unit: define string of volume unit. Default is "mm3"
|
| Returns:
|
| fit_model(self, data=None, voxelsize=None, seeds=None)
|
| interactivity(self, min_val=None, max_val=None, qt_app=None)
| Interactive seed setting with 3d seed editor
|
| interactivity_loop(self, pyed)
|
| run(self, run_fit_model=True)
|
| save(self, filename)
|
| set_seeds(self, seeds)
| Function for manual seed setting. Sets variable seeds and prepares
| voxels for density model.
| :param seeds: ndarray (0 - nothing, 1 - object, 2 - background,
| 3 - object just hard constraints, no model training, 4 - background
| just hard constraints, no model training)
|
| show_model(self, suptitle=None, start=-1000, stop=1000, nsteps=400, show=True)
|
| show_similarity(self, data3d=None, voxelsize=None, seeds=None, area_weight=1, hard_constraints=True, show=True, bins=20)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables (if defined)
|
| __weakref__
| list of weak references to the object (if defined)