Skip to main content
Skip table of contents

Segment Anything

RGB segmentation using the Fast Segment Anything Model (FastSAM - https://docs.ultralytics.com/models/fast-sam/ ). A model will be downloaded when the Analyse Tree is applied for the first time. If the model can not be automatically downloaded for some reason, please see this article for help: Manually download SAM model files

image-20240214-093631.png

Example of Segment Anything in Breeze

Parameters

Source

On which image source the segmentation should be applied. The pseudo-rgb image or a painted prediction image.

Model Type

Type of model with different sizes.

  • FastSAM-s

  • FastSAM-x

Image dimension

Model image input size.

Use a size which is close to the expected spatial resolution of the source image

Confidence

Object confidence threshold.

IOU

The Intersection-over-Union (IOU) parameter measures overlap between predicted and true segments, optimizing and evaluating segmentation accuracy.

Intensity threshold

The intensity threshold parameter, ranging from 0 to 1, determines which parts of an image are kept based on intensity. Values below this threshold are discarded, simplifying the image by focusing on higher intensity areas.

Smoothing

The smoothing parameter controls the amount of blur applied to an image to soften edges and reduce noise, with higher values increasing the blur effect.

Min area

The minimum number of pixels for an object to be included.

Max area

The maximum number of pixels for an object to be included.

If 0 no maximum area is defined.

Object filter

Use an expression to further exclude unwanted objects based on shape.

Standard arithmetic (+,-,/,* …) and comparison operators (=,>,< …) as well as some mathematical expressions (…) and constant values () can be used in expressions.

Expand to see all available operator

Arithmetic Operator

Description

-

Subtract

+

Add

/

Divide

*

Multiply

%

Modulo

^

Raised to a power

Comparison Operator

Description

=

Equal to

|

OR

TRUE if any of the conditions separated by OR is TRUE

&

AND

TRUE if all the conditions separated by AND is TRUE

!=

<>

Not equal to

<

Less than

<=

Less than or equal to

>

Greater than

>=

Greater than or equal to

Function operator

Description

SQRT(N)

SIN(N)

COS(N)

EXP(N)

LOG(N)

LOG10(N)

AVG(N)

ROUND(N)

Constants

Description

TRUE

Always evaluates to TRUE

FALSE

Always evaluates to FALSE

INF

token value

PI

approximated to

Properties that can be used for the Expression:

  • Area

  • Length

  • Width

  • Circumference

  • Regularity

  • Roundness

  • Angle

  • D1

  • D2

  • X

  • Y

  • MaxBorderDistance

  • BoundingBoxArea

For details on each available property see: Object properties Details

Shrink

Takes away x numbers of pixels at the borders of the objects included in images.

Separate

  • Normal

    • Can have both separated and combined objects.

  • Separate adjacent objects

    • All objects are defined separately.

  • Merge all objects into one

    • All objects are defined as one.

  • Merge all objects per row

    • All objects per row segmentation are defined as one.

  • Merge all objects per column

    • All objects per column segmentation are defined as one.

Max objects

Max number of objects in image, takes the first objects sorted by confidence.

Inverse

✅ Includes the opposite of the sample specified in the SAM image model.

⬜ Includes the sample specified from the SAM image model.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.