Shortcuts

caer.color

From the RGB colorspace

rgb_to_bgr

caer.color.rgb_to_bgr(img)[source]

Converts an RGB image to its BGR version

Parameters

img (ndarray) – Valid RGB image array

Return type

ndarray

Returns

BGR Image (ndarray)

Raises

ValueError – If img is not of shape 3

rgb_to_gray

caer.color.rgb_to_gray(img)[source]

Converts an RGB image to its Grayscale version

Parameters

img (ndarray) – Valid RGB image array

Return type

ndarray

Returns

Grayscale Image (ndarray)

Raises

ValueError – If img is not of shape 3

rgb_to_hsv

caer.color.rgb_to_hsv(img)[source]

Converts an RGB image to its HSV version

Parameters

img (ndarray) – Valid RGB image array

Return type

ndarray

Returns

HSV Image (ndarray)

Raises

ValueError – If img is not of shape 3

rgb_to_lab

caer.color.rgb_to_bgr(img)[source]

Converts an RGB image to its BGR version

Parameters

img (ndarray) – Valid RGB image array

Return type

ndarray

Returns

BGR Image (ndarray)

Raises

ValueError – If img is not of shape 3

From the BGR colorspace

bgr_to_rgb

caer.color.bgr_to_rgb(img)[source]

Converts a BGR image to its RGB version

Parameters

img (ndarray) – Valid BGR image array

Return type

ndarray

Returns

RGB Image (ndarray)

Raises

ValueError – If img is not of shape 3

bgr_to_gray

caer.color.bgr_to_gray(img)[source]

Converts a BGR image to its Grayscale version

Parameters

img (ndarray) – Valid BGR image array

Return type

ndarray

Returns

Grayscale Image (ndarray)

Raises

ValueError – If img is not of shape 3

bgr_to_hsv

caer.color.bgr_to_hsv(img)[source]

Converts a BGR image to its HSV version

Parameters

img (ndarray) – Valid BGR image array

Return type

ndarray

Returns

HSV Image (ndarray)

Raises

ValueError – If img is not of shape 3

bgr_to_lab

caer.color.bgr_to_lab(img)[source]

Converts a BGR image to its LAB version

Parameters

img (ndarray) – Valid BGR image array

Return type

ndarray

Returns

LAB Image (ndarray)

Raises

ValueError – If img is not of shape 3

From the HSV colorspace

hsv_to_rgb

caer.color.hsv_to_rgb(img)[source]

Converts a HSV image to its RGB version

Parameters

img (ndarray) – Valid HSV image array

Return type

ndarray

Returns

RGB Image (ndarray)

Raises

ValueError – If img is not of shape 3

hsv_to_bgr

caer.color.hsv_to_bgr(img)[source]

Converts a HSV image to its BGR version

Parameters

img (ndarray) – Valid HSV image array

Return type

ndarray

Returns

BGR Image (ndarray)

Raises

ValueError – If img is not of shape 3

hsv_to_gray

caer.color.hsv_to_gray(img)[source]

Converts a HSV image to its Grayscale version

Parameters

img (ndarray) – Valid HSV image array

Return type

ndarray

Returns

Grayscale Image (ndarray)

Raises

ValueError – If img is not of shape 3

hsv_to_lab

caer.color.hsv_to_lab(img)[source]

Converts a HSV image to its LAB version

Parameters

img (ndarray) – Valid HSV image array

Return type

ndarray

Returns

LAB Image (ndarray)

Raises

ValueError – If img is not of shape 3

From the LAB colorspace

lab_to_rgb

caer.color.lab_to_rgb(img)[source]

Converts an LAB image to its RGB version

Parameters

img (ndarray) – Valid LAB image array

Return type

ndarray

Returns

RGB Image (ndarray)

Raises

ValueError – If img is not of shape 3

lab_to_bgr

caer.color.lab_to_bgr(img)[source]

Converts an LAB image to its BGR version

Parameters

img (ndarray) – Valid LAB image array

Return type

ndarray

Returns

BGR Image (ndarray)

Raises

ValueError – If img is not of shape 3

lab_to_gray

caer.color.lab_to_gray(img)[source]

Converts an LAB image to its Grayscale version

Parameters

img (ndarray) – Valid LAB image array

Return type

ndarray

Returns

Grayscale Image (ndarray)

Raises

ValueError – If img is not of shape 3

lab_to_hsv

caer.color.lab_to_hsv(img)[source]

Converts an LAB image to its HSV version

Parameters

img (ndarray) – Valid LAB image array

Return type

ndarray

Returns

HSV Image (ndarray)

Raises

ValueError – If img is not of shape 3

Read the Docs v: stable
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.