[vtkusers] memory allocation fail for MarchingCubes
Cory Quammen
cory.quammen at kitware.com
Tue Feb 16 10:15:34 EST 2016
Liu,
That is fairly large DICOM file. If your chosen isovalue picks up a
lot of background noise, the resulting isosurface could be huge.
To solve this, you need to either:
1). Increase your system's RAM
2). Choose a different isovalue that does not produce such a large geometry.
- Cory
On Tue, Feb 16, 2016 at 1:28 AM, Liu_tj <tjlp at netease.com> wrote:
> Hi,
>
> I am a newbie of VTK. Now I need to build 3d model which can be saved as STL
> file from DICOM files. I google it and find some guys mentions that
> MarchingCubes. So I try to load a DICOM series(515K one file, totally 676
> files, around 340M) with the sample code at
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Modelling/MarchingCubes. Even I set
> the isoValue of vtkMarchingCubes to 1, when the application memory increase
> to around 1.07G, then get a memory bad_alloc exception.
>
> What happen with it? What should I fix this problem?
>
> Thanks in advance.
>
> Liu Peng
>
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
More information about the vtkusers
mailing list