Skip to main content

PointsList2D

PointsList2D is an ordered list of positions relative to an image. Use it to mark locations, such as points on an object you want SAM3 Image to select.

For example, a point at (0.25, 0.75) sits one quarter of the way across an image and three quarters of the way down. On a 640 × 800 image, that is 160 pixels from the left and 600 pixels from the top.

Read the coordinates​

The origin is the image's top-left corner. The horizontal coordinate, x, increases to the right. The vertical coordinate, y, increases downward. One unit spans the full width or height.

PositionMeaning
(0, 0)Top-left corner
(0.5, 0.5)Center
(1, 1)Bottom-right boundary
(-0.1, 0.5)Outside the image, one tenth of its width to the left

Coordinates describe positions relative to dimensions, rather than fixed pixel numbers. Reusing them with a different picture can point at different objects even when the dimensions match.

Guide object selection​

Use Points Editor to place points on an image. Its Positive points and Negative points outputs are separate PointsList2D values.

Add the Points Model Extension to SAM3 Image, then connect each list to the matching input. Positive points mark the object to include; negative points mark areas to exclude. SAM3 Image uses the points together to select one object and requires at least one positive point for point-based selection. Negative points alone do not select an object.

A point list contains positions, not image pixels. SAM3 Image also needs the source Image. Its resulting mask is an Image, not a PointsList2D value.

Limits​

Each coordinate must be a finite number. The type allows positions outside the image, empty lists, and repeated points. List order is preserved. The list can contain at most 4,294,967,295 points; shared value-size limits and the receiving Node can restrict it further.

Points Editor keeps points you place or drag within the image, from 0 to 1 on both axes. This editor restriction is narrower than the type itself. SAM3's point inputs accept finite off-image positions without moving them onto the image boundary.

Optional point details​

A point can also include these details:

DetailMeaning and limits
GroupAn optional text label, such as left-eye. Its meaning depends on the receiving Node.
Instance IDAn optional whole number from 0 to 9223372036854775807. It identifies an instance within the list; it does not establish tracking between images or frames.
ScoreAn optional finite number. It need not be between 0 and 1, and is not necessarily a probability.

Points Editor outputs positions without these details. SAM3 Image uses the positions and the positive or negative input they arrive through; it ignores group, instance ID, and score. Adding different instance IDs does not make SAM3 select separate objects.