I want to know how to select a ROI on dicomseries? I knew how to read dicomseries and did it for a single dicom. but for dicomseries i have no idea.
For example i have a dicom series,now i want to select a ROI for all of them ,each slice will set the same ROI ,then save as new dicom series. I have readed the example RegionOfInterestImageFilter
It help me work on single dicom .For series I try to change the “reader and writer” to ImageSeriesReader and ImageSeriesWriter,but not work .There must be something here that I don’t know. Someone give me some hits? Thanks!
btw, the example RegionOfInterestImageFilter has a BUG ,it’s missing a line of code: reader->update(). when the pointer reader after getting data
I know my problem description is wordy and bad.So here is my new description:
I want to know How to use the “RegionOfInterestImageFilter” on DicomSeries. There is the example for Single Dicom image. And for Series i have no idea about how to set the index and size for region. Or this filiter can` t work on 3D ?Someone give me some hits? Thanks!
Thanks a lot! it works ,but i also have a question.
I was used 2 Points, One Point start and another is end point .both is 3D point. then set region.SetIndex(start);andregion.SetUpperIndex(end); without using region.setsize(size). It didnt work before.
That means if i use the RoI filter i must set the size argument?