Replies: 1 comment
-
Yes, that's one way of calculating. There are 2 approaches with their advantages and disadvantages:
In Weasis the tools for geometric measurement (see area shape implementation) use a vector representation and you can find the implementation for every shape. With DICOM segmentation, the surface and the volume are computed with pixel/voxel representation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Weasis Team,
Thank you for developing this great library. I have a question regarding how the area for a selected polygon or any similar region is calculated in DICOM images using Weasis.
My current formula for calculating the area is straightforward: ( \text{total_pixels} \times \text{pixel_spacing}^2 ). However, when I use my formula, the results differ from those displayed in Weasis. For instance, in an image with a pixel spacing of approximately 0.78, the calculated areas do not match.
Below is an example image showing the difference:
Could you please provide some insight into how Weasis calculates the area for selected regions in DICOM images? Is there an additional factor or method used in the calculation that might account for the discrepancy I am observing?
Thank you in advance for your assistance.
Beta Was this translation helpful? Give feedback.
All reactions