Hi Layla,Unfortunately, SCIRun does not support clipping to a TriSurfMesh.Where did the TriSurfMesh come from? If it's a derived result, e.g. it's an isosurface from a binary mask, then you'll likely have better success using the upstream representation for masking/clipping the DTI Field. If that is the case, I'd be happy to follow up with you on how to do that.Cheers,DaveOn Aug 4, 2011, at 1:26 PM, Layla Houshmand wrote:Dear David,
I believe it is a tri-surface mesh. ReportFieldInfo for the Left Thalamus Field returns:
Type: GenericField <TriSurfMesh<TriLinearLgn<Point> > ,NoDataBasis<double> , vector<double> >
Best,
LaylaOn Thu, Aug 4, 2011 at 3:18 PM, David Weinstein <dmw@sci.utah.edu> wrote:
Hi Layla,
What type of unstructured mesh is the "Left Thalamus Field"? Is it a tri-surface or a tet-mesh or a hex-mesh?
Cheers,
Dave
On Aug 4, 2011, at 11:17 AM, Layla Houshmand wrote:
> <SCIRunscreenshot.png>> Hi everyone,
>
> I am trying to use the ClipFieldToFieldorWidget module to extract the Diffusion Tensor Imaging data from just one part of the brain (the left Thalamus) . I have .fld files of both the Thalamus and the DTI (they should already be aligned--they come from the same patient). I'd like to export this clipped DTI data as a matrix in Matlab, and I'd be interested in seeing what a .fld file looks like in Matlab also. After playing around a little, I realized that ClipFieldToFieldorWidget returns an error without converting the DTI Field to an Unstructured Mesh first--the Left Thalamus Field is already an unstructured mesh. As you can see, converting the clipped field to a Nrrd and then to a Matrix didn't work out. I end up with a MATLAB file that is unable to load, which is especially confusing as there are no errors in exporting the clipped field to MATLAB. If anyone has any ideas about what I can do to make this code work I'd appreciate it!
>
> Best,
> Layla Houshmand
> Department of Biomedical Engineering
> University of Michigan
Archive powered by MHonArc 2.6.16.