VectorizeProcessor
Tiles processor that vectorizes a channel
Notes
- Vectorizing a channel by its name assumes the time step is None
- Requires a raster channel
Implements the TilesProcessor
protocol.
PARAMETER | DESCRIPTION |
---|---|
channel_key
|
Channel name or channel name and time step combination
TYPE:
|
ignore_background_class
|
If True, the background class (value 0) is not vectorized
TYPE:
|
new_channel_key
|
New channel name or channel name and time step combination
TYPE:
|
max_num_threads
|
Maximum number of threads
TYPE:
|
from_config
classmethod
Creates a vectorize processor from the configuration.
PARAMETER | DESCRIPTION |
---|---|
config
|
Configuration
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
VectorizeProcessor
|
Vectorize processor |
VectorizeProcessorConfig
Bases: pydantic.BaseModel
Configuration for the from_config
class method of VectorizeProcessor
Create the configuration from a config file
- Use null instead of None
- Use false or true instead of False or True
Example
You can create the configuration from a config file.
package: 'aviary'
name: 'VectorizeProcessor'
config:
channel_key: 'my_channel'
ignore_background_class: true
new_channel_key: null
max_num_threads: null
ATTRIBUTE | DESCRIPTION |
---|---|
channel_key |
Channel name or channel name and time step combination
TYPE:
|
ignore_background_class |
If True, the background class (value 0) is not vectorized - defaults to True
TYPE:
|
new_channel_key |
New channel name or channel name and time step combination - defaults to None
TYPE:
|
max_num_threads |
Maximum number of threads - defaults to None
TYPE:
|