Binary operations

Binary operations

Logical operations on one, two or more binary images. The output is a binary image.

Binary x Binary

And

2D
3D

Keep pixels present in both inputs

Parameters
Input
  • A (Binary)

  • B (Binary)

Output
  • R (Binary)
Control

And Multi

2D

Keep pixels present in all inputs

Parameters
Input
  • A, B, … (Binary, Multiple)
Output
  • R (Binary)
Control

Or

2D
3D

Keep pixels present in either input

Parameters
Input
  • A (Binary)

  • B (Binary)

Output
  • R (Binary)
Control

Or Multi

2D

Keep pixels present in any input

Parameters
Input
  • A, B, … (Binary, Multiple)
Output
  • R (Binary)
Control

Xor

2D
3D

Keep pixels present in exactly one input

Parameters
Input
  • A (Binary)

  • B (Binary)

Output
  • R (Binary)
Control

Xor Multi

2D

Keep pixels present in and odd number of inputs

Parameters
Input
  • A, B, … (Binary, Multiple)
Output
  • R (Binary)
Control

Subtract

2D
3D

Remove pixels of B from A

Parameters
Input
  • A (Binary)

  • B (Binary)

Output
  • R (Binary)
Control

Equivalence

2D
3D

Keep pixels where A and B match (both present or both absent)

Parameters
Input
  • A (Binary)

  • B (Binary)

Output
  • R (Binary)
Control

Having

2D
3D

Keep objects in A that overlap at least one object in B

Parameters
Input
  • A (Binary)

  • B (Binary)

Output
  • R (Binary)
Control

Not Having

2D
3D

Keep objects in A that do not overlap any object in B

Parameters
Input
  • A (Binary)

  • B (Binary)

Output
  • R (Binary)
Control

First Not Empty

2D

Use A if not empty, otherwise use B

Parameters
Input
  • A (Binary)

  • B (Binary)

Output
  • R (Binary)
Control

Single Binary

Invert

2D
3D

Swap objects and background

Parameters
Input
  • A (Binary)
Output
  • R (Binary)
Control

Classification

Detection Classifier

2D
Advanced

Compare the ground truth and predicted binaries

Parameters
Input
  • A (Binary)

  • B (Binary)

Output
  • R (Binary)

  • R1 (Binary)

  • R2 (Binary)

Control
  • IoUThreshold (Number)