pdft.color.ColorSpace#
- class pdft.color.ColorSpace(matrix)[source]#
Bases:
objectAn invertible change of channels, applied pixel by pixel.
matrixis(C, C): rowigives channeliof the space as a combination of the image’s channels.to_planestakes an image(..., H, W, C)to its planes(..., C, H, W), in the precision the image has (integers become float64);to_imageis its inverse.- Parameters:
matrix (ndarray)
Methods
__init__(matrix)to_image(planes)(..., C, H, W)planes of this space ->(..., H, W, C)image.to_planes(image)(..., H, W, C)image ->(..., C, H, W)planes of this space.Attributes