Nodes/comfyui_cv/CV Filter Points 3D By Mask
ComfyUI Node

CV Filter Points 3D By Mask

Keeps the rows of an Nx3 point cloud flagged non-zero in a per-point mask, filtering the per-vertex colours in lockstep - the 3D counterpart of 'CV Filter Points By Mask' (which is 2D-only). Drive it with the inlier mask of cv2.estimateAffine3D, the 'valid' output of 'CV Sample Array At Points', or the 'near_mask' of 'CV Point Cloud Nearest Distance' to keep only points a second view confirms. A None mask passes everything through.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Filter Points 3D By Mask
  • points
  • mask
  • colors
  • points
  • colors
  • count
Categoryimage/CV/points

Inputs (3)

NameTypeDefaultDescription
pointsNPARRAYNx3 (or Nx1x3) point cloud.
maskoptNPARRAYNx1 mask: rows != 0 are kept. One entry per point; None keeps all.
colorsoptNPARRAYNx3 per-vertex colours filtered with the same mask.

Outputs (3)

NameTypeDescription
pointsNPARRAY
colorsNPARRAY
countINT