displayarray.effects¶
Crop¶
-
class
Crop
(output_size=(64, 64, 3), center=None)[source]¶ A callback class that will return the input array cropped to the output size. N-dimensional.
-
property
center
¶ Get the center.
-
enable_mouse_control
()[source]¶ Move the mouse to move where the crop is from on the original image.
-
property
output_size
¶ Get the output size.
-
property
Lens¶
Create lens effects. Currently only 2D+color arrays are supported.
-
class
Barrel
(use_bleed=False, barrel_power=1, pincushion_power=1, zoom=1, center=None)[source]¶ A barrel lens distortion callback.
-
property
barrel_power
¶ Guarded barrel power. Avoids divide by zero conditions.
-
property
center
¶ Guarded get center. Limits to within input.
-
enable_mouse_control
(crop_size=None)[source]¶ Enable the default mouse controls.
Move the mouse to center the image scroll to increase/decrease barrel ctrl+scroll to increase/decrease zoom
-
property
zoom
¶ Guarded zoom. Avoids divide by zero conditions.
-
property
-
class
BarrelPyTorch
(use_bleed=False, barrel_power=1, pincushion_power=1, zoom=1, center=None)[source]¶ A barrel distortion callback class accelerated by PyTorch.
-
class
ControllableLens
(use_bleed=False, zoom=1, center=None)[source]¶ A lens callback that can be controlled by the program or the user.
-
class
Mustache
(use_bleed=False, barrel_power=1, pincushion_power=1, zoom=1, center=None)[source]¶ A mustache distortion callback.
-
class
Barrel
(use_bleed=False, barrel_power=1, pincushion_power=1, zoom=1, center=None)[source] A barrel lens distortion callback.
-
property
barrel_power
Guarded barrel power. Avoids divide by zero conditions.
-
property
center
Guarded get center. Limits to within input.
-
enable_mouse_control
(crop_size=None)[source] Enable the default mouse controls.
Move the mouse to center the image scroll to increase/decrease barrel ctrl+scroll to increase/decrease zoom
-
property
zoom
Guarded zoom. Avoids divide by zero conditions.
-
property
-
class
Mustache
(use_bleed=False, barrel_power=1, pincushion_power=1, zoom=1, center=None)[source] A mustache distortion callback.
-
enable_mouse_control
()[source] Enable the default mouse loop to control the mustache distortion.
ctrl+scroll wheel: zoom in and out shift+scroll wheel: adjust pincushion power scroll wheel: adjust barrel power
-