IMaskingSession Class
Summary: The masking session
Module: aspose.imaging.masking
Full Name: aspose.imaging.masking.IMaskingSession
Methods
Name | Description |
---|---|
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
Type | Description |
---|---|
MaskingResult | Result 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
Type | Description |
---|---|
IMaskingAsyncTask | The asynchronous decompose task |
Method: improve_decomposition(masking_arguments)
improve_decomposition(masking_arguments)
Performs retraining decompose operation
Parameters:
Parameter | Type | Description |
---|---|---|
masking_arguments | IMaskingArgs | The masking arguments. |
Returns
Type | Description |
---|---|
MaskingResult | Result 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:
Parameter | Type | Description |
---|---|---|
masking_arguments | IMaskingArgs | The masking arguments. |
Returns
Type | Description |
---|---|
IMaskingAsyncTask | The asynchronous decompose task |
Method: save(file_path)
save(file_path)
Saves the session state to the specified file.
Parameters:
Parameter | Type | Description |
---|---|---|
file_path | string | The file path. |
Method: save(stream)
save(stream)
Save the session state to the specified stream.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | _io.BufferedRandom | The stream. |