Gamma index analysis calculation
Afficher commentaires plus anciens
Hi
I have two matrix values of size 27 cm x27 cm (A1 and A20 and I would like to get the difference in distance value and also difference in dose for each pixel. Given below is the formula, sqrt((r/DTA)^2+(dose/DD)^2) DTA has been set fixed to 2 and DD to 0.03 r is the radius between one pixel to another (for eg. in this case we use 2, so we want to define the difference in distance 2 mm from one pixel), dose is simply the dose difference from one pixel to another. Note that, the value inside 27x27 matrix earlier is the value of dose in each pixel.
I have tried earlier using this code, but I dont know how to calclate difference in distance for the given DTA= 2 mm
DTA=3; dosed=0.03; size1=size (A1) ; size2=size (A2) ; G=zeros (size1) ; %this will be the output Ga=zeros (size1) ; for i = 1 : size1(1) for j = 1 : size1(1) d2 =(A1(i,j)- A2(i,j))^2 ; %difference squared Ga(i,j) = sqrt(r2/(DTA^2)+ d2/(dosed)^2); end end
Really appreciate if someone can help with this Tq
5 commentaires
osvaldo Torres
le 11 Août 2019
Hello!
I have a code that I think can calculate what you need, the difference is that it is the first time I try and I am not sure how to use it, I would appreciate my help and pass the code, contact me at tpo_lome@hotmail.com
aram Derik
le 18 Nov 2021
Hello, I would like to need the gamma index code for my project. Could you please email me the code. I am very grateful to you email raman9281@yahoo.de
Ali Rasouli
le 15 Jan 2022
Could you please email me the code. I am very grateful to you email : Ali.rb73@yahoo.com
Nataly Diaz Rivera
le 18 Mar 2022
Could you please email me the code. I am very grateful to you email : natadi02@ucm.es
Abdelkrim ZEGHARI
le 21 Juil 2023
Could you please email me the code. I am very grateful to you email : a.zeghari@um5s.net.ma Best respects
Réponses (0)
Catégories
En savoir plus sur Gamma Functions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!