-
gravityspy.ml.read_image.
read_and_crop_image
(filename, x, y)[source]¶ Read in a crop part of image you want to keep
- Parameters
- filename (str):
- the file you would like to pixelize
- x (float, list):
- xrange of pixels to keep
- y (float, list):
- yrange of pixels to keep
- Returns
- image_data (`np.array):
- this images is taken from rgb to gray scale and then downsampled by the resolution.
-
gravityspy.ml.read_image.
read_grayscale
(filename, resolution=0.3, x=[66, 532], y=[105, 671], verbose=False)[source]¶ Convert image from RGB to Gray, downsample
- Parameters
- filename (str):
- the file you would like to pixelize
- resolution (float, optional):
- default: 0.3
- verbose (bool, optional):
- default: False
- Returns
- image_data (`np.array):
- this images is taken from rgb to gray scale and then downsampled by the resolution.
-
gravityspy.ml.read_image.
read_rgb
(filename, resolution=0.3, x=[66, 532], y=[105, 671], verbose=False)[source]¶ Convert image from RGB to Gray, downsample
- Parameters
- filename (str):
- the file you would like to pixelize
- resolution (float, optional):
- default: 0.3
- verbose (bool, optional):
- default: False
- Returns
- image_data (`np.array):
- this images is taken from rgb to gray scale and then downsampled by the resolution.