cookie#
- cuqi.data.cookie(size=128, grayscale=True)#
Cartoon-style image of a cookie.
The image is generated from the cookie.png color image file in cuqi/data. The original image is of size 2491 x 2243 pixels. The image is resized to be square and optionally converted to grayscale.
- Parameters:
size (int) – Size of the image to generate. Image is square with sides of length size.
grayscale (bool) – If True, return grayscale image. Otherwise return RGB image. Small values in the grayscale image are set to zero to make the background completely black.
- Returns:
Image of the phantom.
- Return type:
ndarray