Hi Mavin, The reason that you only see edges in this example is because you only had a surface to begin with, so the boundary would be an edge. To view an image of the 2D matrix, just pipe the output from the ConvertMatrixToField to the ShowField module. You may want to also use RescaleColorMap to adjust the limits of the color map. That will allow you to scale for your 1,2,3,... labels. To load 3D matrix data you can do this a number of ways. The nrrd format allows for 3D image data and is a format we use often. You could export the binary data from matlab and create a text header file (nhdr) so that it will load into SCIRun. Please refer to the Teem documentation for more information (http://teem.sourceforge.net/nrrd/). There are a few other formats that you could use also, but nrrd is the one I use most. Another option is to save it as a 1D matrix, then create a 3D lattice (latvol) in SCIRun to map onto. You can do this using the CreateLatVol module and the SetFieldData module. Make sure the number of nodes or elements in the latvol is the same as the number of values in the matrix. It may also take some tweaking to get the order of the data correct. I might be helpful to use the text option in the ShowField module to help with this. This option is harder to set the size of the volume or the spacing of the voxels than using the nrrd format. There are some tutorials that you can refer to. They are on the website (scirun.org). Click user documentation, then tutorials. The basic tutorial probably covers the most with the questions that you have. Hopefully that helps. Cheers, Jess On Apr 23, 2013, at 8:16 PM, mavinmartin@gmail.com wrote:
|
Archive powered by MHonArc 2.6.16.