Skip to content

Chan Vese

Description

From scikit-image: Chan-Vese segmentation algorithm.
Active contour model by evolving a level set.
Can be used to segment objects without clearly defined boundaries.

Real time: False

Usage

  • Threshold: Creates a mask that keeps only parts of the image

Parameters

  • Channel (channel): (default: h)
  • Max iterations (max_iter): (default: 100)
  • mu (mu): (default: 25)
  • Lambda1 (lambda1): (default: 1)
  • Lambda2 (lambda2): (default: 1)
  • dt (dt): (default: 25)

Example

Source

Source image

Parameters/Code

Default values are not needed when calling function

1
2
3
4
5
from ipapi.ipt import call_ipt

channel = call_ipt(ipt_id="IptChanVese",
                   source="tomato_sample_plant.jpg",
                   )

Result

Result image