plenoptic.data.reptile_skin#
- plenoptic.data.reptile_skin(as_gray=True)[source]#
Return an example grayscale image of reptile skin.
- 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 >>> reptile_skin = po.data.reptile_skin() >>> reptile_skin.shape torch.Size([1, 1, 256, 256]) >>> po.plot.imshow(reptile_skin) <PyrFigure size ...>
>>> import plenoptic as po >>> reptile_skin_rgb = po.data.reptile_skin(as_gray=False) >>> reptile_skin_rgb.shape torch.Size([1, 3, 256, 256])