/*
Copyright© 2023 Raúl Wolters(1)
This file is part of rustronomy-core.
rustronomy is free software: you can redistribute it and/or modify it under
the terms of the European Union Public License version 1.2 or later, as
published by the European Commission.
rustronomy is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the European Union Public License for more details.
You should have received a copy of the EUPL in an/all official language(s) of
the European Union along with rustronomy. If not, see
.
(1) Resident of the Kingdom of the Netherlands; agreement between licensor and
licensee subject to Dutch law as per article 15 of the EUPL.
*/
use std::sync::RwLock;
use ndarray as nd;
use ndarray_rand::{
rand_distr::{Poisson, Uniform},
RandomExt,
};
#[cfg(feature = "plots")]
use plotters::style::RGBColor;
use rand::Rng;
use rustronomy_fits as rsf;
use rustronomy_watershed::prelude::*;
//This constant determines the randomly generated images' sizes
const RF_SIZE: (usize, usize) = (1000, 1000);
static CGPS_DATA: RwLock