I can manipulate the 3 2d planes in 3d slicer and visualize the the planes of data I want to extract. The data is 3d+t ultrasound data. Ideally I would like to export the data as 2d ultrasound multi-frame data to 3 separate DICOM files. Is there a way to do this within 3D Slicer GUI or with an extension (SlicerHeart perhaps)?
Simply put, I want to export the data I see presented on the screen for each plane without diving into python coding. Am I missing something obvious? If I have to use python then how would I get the data for each of the planes shown in 3D Slicer?
If it is just for creating a list of images or video for a powerpoint presentation then you can use Screen Capture module for this.
If it is for exporting training data for deep learning or other analysis or processing then you need to somehow specify what you need. The easiest is to express this using Python scripting. For example, you can get access to the entire volume sequence as a 4D numpy array (see example here) and then you can extract any data from it, any way you need.
I have found an example of how to get the 4d array of data in python.
Now I want to extract the data as the axial, sagittal, and coronal slices defined by the user. Since the 4d array isn’t aligned with the user defined slices/orientations, what python code would get me the interpolated data along the user defined slices?
I want to extract standard AP4, AP2, AP3, and SAX 2d ultrasound clips from a 3d data set for input to another software analysis tool that only accepts 2d ultrasound clips. I probably should have stated the problem this way from the start, but I tend to have bottom up view of things…
You can create a markups ROI node, make it so thin that it only extracts a single slice, then use Crop volume sequence module to extract that slice from all the volumes in the sequence. If you get stuck at any of these steps then let us know.