- Python 3 is required
- Install all the libraries listed in
requirements.txt(pip install -r requirements.txt)
- Run
python detect.py filepath --config configpathfrom the cta-gamma-ray-analysis root folder
usage: detect.py [-h] [--config CONFIG] filepath
Detect Sources
positional arguments:
filepath Path of the fits file
optional arguments:
-h, --help show this help message and exit
--config CONFIG Path of config file (default = data/default.conf)
- Run
run.shfrom the cta-gamma-ray-analysis root folder - Keep focus on displayed images
- You can change:
- Adaptive Threshold
- blockSize, Size of a pixel neighbourhood that is used to calculate a threshold value for the pixel
- const, Constant subtracted from the mean or weighted mean
- Filters
- number of median filter iterations
- median filter kernel size
- number of gaussian filter iterations
- gaussian filter kernel size
- Local Linear Stretching
- stretch kernel size
- stretch step size: step size at every sliding window iteration
- stretch min bins: minimum value within which the current window is normalized
- Adaptive Threshold
Legenda:
Type the following keys to change mode (remember: keep focus on the displayed images, don't write anything on the terminal):
tadaptive thresholdfgaussian & median filterllocal stretch
then type [1 .. 4] to select the parameter and use a and d to change it.
Then you can type:
-
rto print results -
vto print current values -
pto visualize intermediate steps -
wandsto change map -
enterto print legenda -
escto quit