IMaskingSession Class

Summary: The masking session

Module: aspose.imaging.masking

Full Name: aspose.imaging.masking.IMaskingSession

Aspose.Imaging Version: 24.6.0

Methods

NameDescription
decompose()Performs first rough decompose operation
decompose_async()Creates the asynchronous task which can perform first rough decompose operation
improve_decomposition(masking_arguments)Performs retraining decompose operation
improve_decomposition_async(masking_arguments)Creates the asynchronous task which can perform retraining decompose operation
save(file_path)Saves the session state to the specified file.
save(stream)Save the session state to the specified stream.

Method: decompose()

 decompose() 

Performs first rough decompose operation

Returns

TypeDescription
MaskingResultResult of masking operation as array of segment image providers.

Method: decompose_async()

 decompose_async() 

Creates the asynchronous task which can perform first rough decompose operation

Returns

TypeDescription
IMaskingAsyncTaskThe asynchronous decompose task

Method: improve_decomposition(masking_arguments)

 improve_decomposition(masking_arguments) 

Performs retraining decompose operation

Parameters:

ParameterTypeDescription
masking_argumentsIMaskingArgsThe masking arguments.

Returns

TypeDescription
MaskingResultResult of masking operation as array of segment image providers.

Method: improve_decomposition_async(masking_arguments)

 improve_decomposition_async(masking_arguments) 

Creates the asynchronous task which can perform retraining decompose operation

Parameters:

ParameterTypeDescription
masking_argumentsIMaskingArgsThe masking arguments.

Returns

TypeDescription
IMaskingAsyncTaskThe asynchronous decompose task

Method: save(file_path)

 save(file_path) 

Saves the session state to the specified file.

Parameters:

ParameterTypeDescription
file_pathstringThe file path.

Method: save(stream)

 save(stream) 

Save the session state to the specified stream.

Parameters:

ParameterTypeDescription
stream_io.BufferedRandomThe stream.