()
Example with `morphological_chan_vese` with using the default
    initialization of the level-set.
Example with `morphological_chan_vese` with using the default
    initialization of the level-set.
Example with morphological_chan_vese with using the default initialization of the level - set .
def example_camera():
    """
    Example with `morphological_chan_vese` with using the default
    initialization of the level-set.
    """

    logging.info('Running: example_camera (MorphACWE)...')

    # Load the image.
    img = imread(PATH_IMG_CAMERA)/255.0

    # Callback for visual plotting
    callback = visual_callback_2d(img)

    # Morphological Chan-Vese (or ACWE)
    ms.morphological_chan_vese(img, 35,
                               smoothing=3, lambda1=1, lambda2=1,
                               iter_callback=callback)
def example_camera ( ) : logging . info ( 'Running: example_camera (MorphACWE)...' ) # Load the image. img = imread ( PATH_IMG_CAMERA ) / 255.0 # Callback for visual plotting callback = visual_callback_2d ( img ) # Morphological Chan-Vese (or ACWE) ms . morphological_chan_vese ( img , 35 , smoothing = 3 , lambda1 = 1 , lambda2 = 1 , iter_callback = callback )