CastTransformer#
- class CastTransformer[source]#
Bases:
RasterTransformerCasts chips to the specified dtype.
- __init__(to_dtype: str)[source]#
Constructor.
- Parameters:
to_dtype (str) – (str) dtype to cast the chips to.
Methods
__init__(to_dtype)Constructor.
get_out_channels(in_channels)Number of channels in output of
transform().get_out_dtype(in_dtype)dtype of the output of
transform().transform(chip)Cast chip to dtype
self.to_dtype.- __init__(to_dtype: str)[source]#
Constructor.
- Parameters:
to_dtype (str) – (str) dtype to cast the chips to.