--
You received this message because you are subscribed to the Google Groups "PyMedPhys" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pymedphys+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/dc4af9f7-e1ac-4e8b-9101-4fbf3c9f2392o%40googlegroups.com.
xmin = -28
xmax = 28
ymin = -25
ymax = 25
extent = [xmin-grid/2, xmax+grid/2, ymin-grid/2, ymax+grid/2]
x = np.arange(xmin, xmax + grid, grid)
y = np.arange(ymin, ymax + grid, grid)
coords = (y, x)
xx, yy = np.meshgrid(x, y)
dose_ref = np.exp(-((xx/15)**20 + (yy/15)**20))
plt.figure()
plt.title('Reference dose')
plt.imshow(dose_ref, clim=(0, 1.04), extent=extent)
plt.colorbar()
image = Image.open('original_dose.jpg')
data = np.array(image)
Hi Aleksandras,Within the docs is an example where two 2D maps are compared:But it should also be possible to compare a 2D film result to a 3D dose map also. Are you in a position to provide example data, and I can show you how you might go about allowing the gamma to not only search along the film plane in the 3D MC dose grid, but also along the axis perpendicular to the film plane.Cheers,Simon
On Tue, 7 Jul 2020 at 22:49, Alexander S <ragna...@gmail.com> wrote:
Dear all,--I am working the MC simulations and Gafchromic films, where my obtained dose maps are usual 2D images.I would like to know how I could use this package to perform the gamma test on such inputs instead of standard dicoms , and what special conditions are necessary for input images(same x, y pixel count and grey-scale, I guess?)Thank you very much for your help,RegardsAleksandras
You received this message because you are subscribed to the Google Groups "PyMedPhys" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyme...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to pymedphys+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/aba0cebc-687a-4e03-813c-bf263c7bc547o%40googlegroups.com.
I am aware about the protocols of the film preparation, however, the coding is my weaker part at the moment.
The code link you provided looks really good, however, as the most of such codes, contains a huge drawback – no proper documentation for entry level users.
The provided documentation are just the links to the theoretical frameworks that code uses. But maybe I miss something?
Could you maybe please explain: if I have (n,n) matrix in which the pixel gray values correspond to dose value, how should I proceed to obtain correct form of input for coords, dose_ref ?
A.
Update: I found my mistakes and was able to successfully convert the images and use the tool. Thanks!
A.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/00a001d6548f%24345d3af0%249d17b0d0%24%40gmail.com.
Indeed, thank you much for your notice.
My previous questions were related just for the testing purposes.
I see that it works really well and as intended.
Rgds
A.
If I may one more time, just to clarify the last thing,
In the example https://docs.pymedphys.com/howto/gamma/effect-of-noise.html,
'distance_mm_threshold': 3,
xmin = -28
xmax = 28
ymin = -25
ymax = 25
Do I understand correctly that in this particular example the generated image is normalized to 1 mm per pixel ?
For example, if I had 100x100 image with pixel size 0.2 mm, and I would like to apply distance threshold 3 mm, the actual value I should put in should be 'distance_mm_threshold': 15,
Thank you very much,
Rgds
Alex
From: Randle Taylor <randle...@gmail.com>
Sent: Tuesday, July 7, 2020 23:26
To: ragna...@gmail.com
The code link you provided looks really good, however, as the most of such codes, contains a huge drawback – no proper documentation for entry level users.
Do I understand correctly that in this particular example the generated image is normalized to 1 mm per pixel ?
grid = 0.5
gamma_no_noise = pymedphys.gamma( coords, dose_ref, coords, dose_eval, **gamma_options)
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/00c601d654a2%24bb69b330%24323d1990%24%40gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/CAALqB0DQKZ_wZhQ0c%3D9RMWhhyLSMxUQpNeawdjvH6QPW0yQ6-A%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/CALjLm01tzu1s2SbWjt1Zag-4rkTfH-U3gc7By9cHDxiCH4Zddg%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/CAALqB0AmOgaermCjcxovCv9gYQtqMqUqoR%3DiysiZ9_5i%2B-_pCA%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/CALjLm03dq%3Dc%3Dyg18dYUOctTbHrnki_Y4jkRv_zJphRQpQJMALw%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/aba0cebc-687a-4e03-813c-bf263c7bc547o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "PyMedPhys" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyme...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/00a001d6548f%24345d3af0%249d17b0d0%24%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "PyMedPhys" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyme...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/00c601d654a2%24bb69b330%24323d1990%24%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "PyMedPhys" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyme...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/CAALqB0DQKZ_wZhQ0c%3D9RMWhhyLSMxUQpNeawdjvH6QPW0yQ6-A%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "PyMedPhys" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyme...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/CALjLm01tzu1s2SbWjt1Zag-4rkTfH-U3gc7By9cHDxiCH4Zddg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "PyMedPhys" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyme...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/CAALqB0AmOgaermCjcxovCv9gYQtqMqUqoR%3DiysiZ9_5i%2B-_pCA%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to pymedphys+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pymedphys/e3eb604d-410f-43a0-a3e8-0c042bdfd91eo%40googlegroups.com.