Image cutout tool

更新时间:
复制 MD 格式

The image cutout component separates specific objects from an image. It is suitable for use in image semantic segmentation, image-to-text, and image and text explanation templates.

Function introduction

image

Area

Feature

Description

Keyboard shortcut

Move/Zoom in/Zoom out image

  • Move image: Click and drag to move.

  • Zoom in: Click to zoom in.

  • Zoom out: Click to zoom out.

  • alt+w/s/a/d: Move up, down, left, or right.

  • alt+Up arrow/Down arrow: Zoom in or zoom out.

  • alt+[]: Align the image left or right.

Interactive segmentation

Smart segmentation with a point-and-click operation. It uses the Segment Anything Model (SAM) by default. Left-click to add a positive point and right-click to add a negative point.

For best results, use continuous operations. Add positive points to areas you want to keep and negative points to areas you want to remove. The points are cleared if you switch to another operation or undo the cutout.

None

Bounding box

Smart segmentation with a box selection operation. It uses SAM by default. After you draw a box, the tool automatically detects and segments the object inside it.

None

Rectangle selection

The Marquee Selection operation fills the area within the selection box, and you can Merge Or Subtract this area with other segmented areas of the same color.

None

Adjust edge

Draw a polygon for fine-grained matting and Close The Area to create a shape. You can then Merge Or Subtract this shape with other segmented areas of the current color.

  • Space bar: Quickly auto-close the shape.

  • Backspace: Undo and return to the previous key point.

Magnetic lasso

Creates a precise cutout in Lasso Form by drawing a shape and Closing The Area. You can choose to Merge With Or Subtract From other segmented areas of the current color.

  • Space bar: Quickly auto-close the shape.

  • Backspace: Undo and return to the previous key point.

Fill brush

Use a brush to fill the current operation mask with color. You can adjust the brush size.

None

Eraser

Erases only the colored area of the current operation mask. Other colors are not affected. You can adjust the brush size.

None

Undo/Redo cutout

Undo or redo a cutout operation.

None

Clear mask

Clears all masks and related data.

Note

When you clear the masks, data such as the masks and detail descriptions are cleared together.

None

Remove background area

Removes the background and displays all currently segmented objects. Click the image icon to switch between a background color and a checkerboard pattern.

None

One-click hide (show original image)/Show all (show masks)

Hides or shows all current masks, letting you view the original image at any time.

None

Demonstrations

Interactive segmentation

交互式分割

Bounding box

Adjust edge

image.png

Magnetic lasso

Background Removal

image

Annotation example

The following video demonstrates how to combine features such as interactive segmentation, bounding box, magnetic lasso, rectangle selection, adjust edge, fill brush, and eraser on a single image.