Skip to content

Abstract Class: ROI ​

Defined in: src/roi/ROI_base.ts:10

Abstract base class for Region of Interest (ROI) objects.

Direct translation of Python's ROI abstract base class.

Extended by ​

Constructors ​

Constructor ​

ts
new ROI(): ROI;

Returns ​

ROI

Properties ​

space ​

ts
abstract readonly space: NeuroSpace;

Defined in: src/roi/ROI_base.ts:11


coords ​

ts
abstract readonly coords: number[][];

Defined in: src/roi/ROI_base.ts:12

Accessors ​

length ​

Get Signature ​

ts
get abstract length(): number;

Defined in: src/roi/ROI_base.ts:17

Get the number of voxels in the ROI.

Returns ​

number

Methods ​

indices() ​

ts
abstract indices(): number[];

Defined in: src/roi/ROI_base.ts:22

Get linear indices for the coordinates.

Returns ​

number[]


toString() ​

ts
abstract toString(): string;

Defined in: src/roi/ROI_base.ts:27

String representation of the ROI.

Returns ​

string

Released under the MIT License.