[vtkusers] vtkMarchingCubes
prabhat246
prabhat246 at yahoo.com
Sun May 25 17:13:24 EDT 2008
Thanks Sylvain,
I closely want to follow the marching cubes algorithm,
It is very difficult for me to difficult to understand the code of the
algorithm.
But Still it is being little difficult for me to understand the function
which is actually responsible for the
Marching cubes algorithm[vtkMarchingCubesComputeGradient()]
Could you tell me which data structure stores the output and in what
format(is it still ImageData or PolyData)? also It is being difficult for me
to understand which variable is what.
It is also a good idea if you could comment this function for me.
http://www.nabble.com/file/p17462464/vtkMarchingCubes.cxx
vtkMarchingCubes.cxx
Thanks a lot.
Prabhat
Sylvain Jaume-2 wrote:
>
> Hi Prabhat,
>
> 1. The first parameter in SetValue is the index of the isosurface (if you
> have just one isosurface, use 0). The second parameter defines the
> intensity
> of the isosurface that will be created.
> 2. To make the cubes bigger, you can apply vtkImageResample and downsample
> your volume to a lower resolution. You might need to low pass the
> intensities first using vtkImageGaussianSmooth.
> 3. To process huge volumes, you can use
> vtkSliceCubes<http://www.vtk.org/doc/nightly/html/classvtkSliceCubes.html>.
> This filter only processes 4 slices at a time to reduce its memory
> footprint.
>
> HTH,
> Sylvain
>
> On Wed, May 21, 2008 at 6:09 PM, prabhat246 <prabhat246 at yahoo.com> wrote:
>
>>
>> Hi,
>>
>> Please if someone can try to answer my questions then please do reply.
>> (I've never got a response for my previous posts.)
>> Even I'll be happy to listen NO from the modertors rather than waiting
>> for
>> a
>> response for a long time.
>>
>>
>>
>> I made following changes in example
>>
>>
>>
>> \ITK\InsightApplications-3.4.0\Auxiliary\vtk\itkReadITKImage3DSegmentShowVTK
>>
>> here is my piece of code
>> vtkMarchingCubes * contour = vtkMarchingCubes::New();
>> contour->SetInput(vtkImporter1->GetOutput());
>> contour->SetValue(0, 128);
>>
>> I am new to learn this algorithm.
>>
>>
>> 1. Can you please explain what are these parameters of SetValue function
>> ??
>> 2. How can I change the cube size to be bigger ?? and
>> 3. How can I run this example without consuming much of memory (say I
>> have
>> 800+ slices) ??
>>
>> Hoping for a helpful quick response.
>>
>>
>
>>
>> Thanks a lot
>>
>> Prabhat
>> --
>> View this message in context:
>> http://www.nabble.com/vtkMarchingCubes-tp17380317p17380317.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
View this message in context: http://www.nabble.com/vtkMarchingCubes-tp17380317p17462464.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list