jfcabana / omg_dosimetry

Optimized Multichannel Gafchromic Dosimetry
https://omg-dosimetry.readthedocs.io/en/latest/
MIT License
8 stars 2 forks source link

Related to issue #53 ROI selection #54

Closed LuisOlivaresJ closed 3 months ago

LuisOlivaresJ commented 5 months ago

Here are the additions:

  1. Adding a new callback function (key_c_pressed) to catch a ROI when the key c is pressed.
  2. The ROI size (in mm) is shown in the terminal when RectangleSelector changes.
  3. New style for RectangleSelector.

The code I used for tesitng (in Anaconda Powershell) was:

from omg_dosimetry.calibration import LUT
from pathlib import Path
import matplotlib.pyplot as plt
from omg_dosimetry import calibration

my_path = calibration.from_demo_image()
doses = [0.0, 100.0, 200.0, 400.0, 650.0, 950.0]

lut = LUT(my_path, doses, crop_top_bottom = 650, film_detect=False) 

roi

jfcabana commented 4 months ago

That looks great Luis. Very nice addition!

jfcabana commented 4 months ago

I'll let you go ahead and merge it.