plenoptic.data.curie#

plenoptic.data.curie(as_gray=True)[source]#

Return an example grayscale image of Marie Curie.

Parameters:

as_gray (bool (default: True)) – Whether to load a single grayscale channel or 3 RGB channels.

Return type:

Tensor

Returns:

image – 4d tensor of the image.

Examples

>>> import plenoptic as po
>>> curie = po.data.curie()
>>> curie.shape
torch.Size([1, 1, 256, 256])
>>> po.plot.imshow(curie)
<PyrFigure size ...>

(png, hires.png, pdf)

../../_images/plenoptic-data-curie-1.png
>>> import plenoptic as po
>>> curie_rgb = po.data.curie(as_gray=False)
>>> curie_rgb.shape
torch.Size([1, 3, 256, 256])