Skip to content

N2V Manipulate

Source

N2V manipulation transform.

N2VManipulate

Bases: Transform

Default augmentation for the N2V model.

This transform expects C(Z)YX dimensions.

Parameters:

Name Type Description Default
roi_size int

Size of the replacement area, by default 11.

11
masked_pixel_percentage float

Percentage of pixels to mask, by default 0.2.

0.2
strategy Literal['uniform', 'median']

Replaccement strategy, uniform or median, by default uniform.

value
remove_center bool

Whether to remove central pixel from patch, by default True.

True
struct_mask_axis Literal['horizontal', 'vertical', 'none']

StructN2V mask axis, by default "none".

'none'
struct_mask_span int

StructN2V mask span, by default 5.

5
seed Optional[int]

Random seed, by default None.

None

Attributes:

Name Type Description
masked_pixel_percentage float

Percentage of pixels to mask.

roi_size int

Size of the replacement area.

strategy Literal['uniform', 'median']

Replaccement strategy, uniform or median.

remove_center bool

Whether to remove central pixel from patch.

struct_mask Optional[StructMaskParameters]

StructN2V mask parameters.

rng Generator

Random number generator.