The functions are available, but I need some help with the usage.
I have a volume and I want to check which voxels are inside the ROI area.
I assume that the IsPointInROI accepts world space coordinates and not voxel space coords. I tried the transformation but I am not successful.
Do we have an example where we check voxels again a rotated ROI?
With a few rare exceptions (when you access voxels by indices) all 3D coordinates in Slicer are in physical coordinate system. You can transform between them by multiplying the coordinates by the volumes IJK to RAS transformation matrix.
What would you like to achieve? Blank out voxels or compute statistics in a ROI?
My module is a tool to adjust a color volume (three scalars/rgb). I indeed would like to adjust the values within the region of interest. I iterate the voxels x,y,z and need to check if they are inside the roi.
If i understand you correctly, i can get the RAS value of each voxel like you described and use that on the rotated ROI using the IsInside function?