I am trying to develop a region of interest/ROI and a histogram(Piecewise Gussian Widget) corresponding to that ROI. Is there a way to extract the vtkImageData within the region or the dataArray within the ROI?
Thanks in advance.
I am trying to develop a region of interest/ROI and a histogram(Piecewise Gussian Widget) corresponding to that ROI. Is there a way to extract the vtkImageData within the region or the dataArray within the ROI?
Thanks in advance.
I would suggest you try to prototyptñe it on Slicer first
You have labelmaps segmentation tools and filters, all you need
@mau_igna_06 except the JS part as slicer is based on VTK C++.
If you ROI is IJK based, you should be able to easily iterate through your array with 3 nested loops to compute the proper 1D array index.