plenoptic.data.parrot#
- plenoptic.data.parrot(as_gray=True)[source]#
Return an example grayscale image of a parrot.
- Parameters:
as_gray (
bool(default:True)) – Whether to load a single grayscale channel or 3 RGB channels.- Return type:
- Returns:
image – 4d tensor of the image.
Examples
>>> import plenoptic as po >>> parrot = po.data.parrot() >>> parrot.shape torch.Size([1, 1, 254, 266]) >>> po.plot.imshow(parrot) <PyrFigure size ...>
>>> import plenoptic as po >>> parrot_rgb = po.data.parrot(as_gray=False) >>> parrot_rgb.shape torch.Size([1, 3, 254, 266])