how to plot the dose volume histogram using dose map and the mask?
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I'm trying to calculate the DVH using MATLAB. I already have create the mask (RTstruc) and the dose map (RTdose). I created meghgrids for both the mask and and the dose map and I resized the dose map to match the mask using interp3 but the problem is when I masked this interpolated dose map to only include that mask, the masked dose map is giving me NaN values, even though the interpolated dose map and the mask are correctly defined. I visulaized the dose map and the mask and they seem not aligned.
1 commentaire
DGM
le 6 Mai 2024
We don't know how you used interp3(), or what you did to create or apply the mask. We don't know what the array dimensions are or what you mean when you say "not aligned". It's also not clear why content misalignment would cause an addressing operation to output NaNs which were not in the array being addressed.
You need to provide more information.
Réponses (1)
Sanju
le 6 Mai 2024
Modifié(e) : Sanju
le 7 Mai 2024
It seems like the issue you're facing is related to the alignment of the dose map and the mask. When interpolating the dose map, it's important to ensure that the interpolation is done correctly to match the grid of the mask. Here are a few suggestions to address this issue,
- Check the grid spacing and dimensions of both the mask and the dose map. Make sure they are consistent and match each other.
- Verify that the interpolation method used in interp3 is appropriate for your data. You may need to experiment with different interpolation methods (e.g., linear, nearest neighbor, cubic) to find the one that works best for your case.
- Double-check the order of the dimensions in the dose map and the mask. It's possible that they are not aligned properly. You can use the permute function to reorder the dimensions if needed.
- If the dose map and the mask are in different coordinate systems, you may need to transform one of them to match the other. MATLAB provides various functions for coordinate transformations, such as imwarp or affine3d.
For further assistance please share more details on the issue you're facing currently.
you can also refer to the following documentation links for more information,
Hope this helps!
0 commentaires
Voir également
Catégories
En savoir plus sur Data Distribution Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!