SCIRun User Mailing List

Text archives Help


[SCIRUN-USERS] Fwd: Re: [Teem-users] NRRD in function to run ITK filters from Matlab, and in Gerardus Matlab toolboxes


Chronological Thread 
  • From: Ramón Casero Cañas <rcasero@gmail.com>
  • To: Mailing list SCIRun <scirun-users@sci.utah.edu>
  • Subject: [SCIRUN-USERS] Fwd: Re: [Teem-users] NRRD in function to run ITK filters from Matlab, and in Gerardus Matlab toolboxes
  • Date: Sat, 09 Jul 2011 11:38:14 +0100


Hi,

I recently emailed the Teem users mailing list to let them know about itk_imfilter(), the function to run ITK filters from Matlab.

The reason to email Teem was that the function takes at the input matrices or the Matlab SCI NRRD struct created by Seg3D.

Gordon Kindlmann made some comments and said "Any SCI'ers on this list are free to comment!", so I'm forwarding the conversation here (the messages below can be read top to bottom).

Best regards,

Ramon.



-------- Original Message --------
Subject: Re: [Teem-users] NRRD in function to run ITK filters from Matlab, and in Gerardus Matlab toolboxes
Date: Fri, 8 Jul 2011 18:30:12 -0500
From: Gordon L. Kindlmann <glk@uchicago.edu>
To: Ramón Casero Cañas <rcasero@gmail.com>
CC: teem-users@lists.sourceforge.net


On Jul 8, 2011, at 11:56 AM, Ramón Casero Cañas wrote:

On 08/07/11 17:34, Gordon L. Kindlmann wrote:

Thanks for letting us know about this interesting work.

Just to be certain, though, it sounds like your "functions to read
the
NRRD struct" are specifically for getting information out of the .mat
matlab file produced by Seg3D, and that your functions do not parse
or
read the NRRD format described here

http://teem.sf.net/nrrd/format.html

or manipulate the Nrrd C struct defined here (starting line 119):

http://tinyurl.com/3owtyny

Is that correct?


Hi Gordon,

Thanks for your reply. Yes, you are right, it's a Matlab struct as
opposed to a C/C++ struct.

It's specific to the Matlab struct produced by Seg3D when it saves
to .mat. I have tried to be careful to write in the help headers of
Gerardus scinrrd_*.m functions that we are referring to the SCI
Seg3D NRRD. For example,

http://code.google.com/p/gerardus/source/browse/trunk/matlab/PointsToolbox/scinrrd_pca.m

In fact, the functions are called scinrrd_*.m, instead of nrrd_*.m.

But if you guys think that there's a better way to do this, I'm
quite happy to listen.

Best regards,

Ramon.

You should use whatever names work for you.  I just pointing out that
it sounds like these .mat files don't actually have much to do with
either the Nrrd C struct or the NRRD file format.  'scimat" or
"seg3dmat" might be a better prefix that "scinrrd".

Any SCI'ers on this list are free to comment!

Gordon



  • [SCIRUN-USERS] Fwd: Re: [Teem-users] NRRD in function to run ITK filters from Matlab, and in Gerardus Matlab toolboxes, Ramón Casero Cañas, 07/09/2011

Archive powered by MHonArc 2.6.16.

Top of page