<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi OnezerO,<br>
<br>
You can find the manpages for every VTK class here:<br>
<a class="moz-txt-link-freetext" href="http://www.vtk.org/doc/nightly/html/classes.html">http://www.vtk.org/doc/nightly/html/classes.html</a><br>
<br>
and here for vtkContourFilter:<br>
<a class="moz-txt-link-freetext" href="http://www.vtk.org/doc/nightly/html/classvtkContourFilter.html">http://www.vtk.org/doc/nightly/html/classvtkContourFilter.html</a><br>
<br>
For more information, check the VTK book:<br>
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/vtktextbook.html">http://www.kitware.com/products/vtktextbook.html</a><br>
<br>
Cheers,<br>
Sylvain<br>
<br>
OnezerO wrote:
<blockquote
 cite="mid!&amp;!AAAAAAAAAAAYAAAAAAAAAA+S3wvdslBOiEBSFuwDKifCgAAAEAAAAHSeuV+O8h9Hv3qg8IGjEx4BAAAAAA==@gmail.com"
 type="cite">
  <pre wrap="">Meanwhile i do this, do you know where i can find the theory of the
vtkContour, to add to my final report.

Saludos,
OnezerO 

-----Mensaje original-----
De: Sylvain Jaume [<a class="moz-txt-link-freetext" href="mailto:sylvain.jaume@kitware.com">mailto:sylvain.jaume@kitware.com</a>] 
Enviado el: Martes, 08 de Noviembre de 2005 17:46
Para: OnezerO
CC: <a class="moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>
Asunto: Re: [vtkusers] 3D Rendering of an sliced object

Hi OnezerO,

What is wrong with showing part of a cube during your final examination?
Alternatively you could try this:

double scalarRange[2];
importer-&gt;GetOutput()-&gt;GetScalarRange(scalarRange);

[snip]

imageConstantPad-&gt;SetConstant(scalarRange[0]);

Cheers,
Sylvain

OnezerO wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Ok, but the extent thing dindt work, even make another kind of image, 
like a part of a cube, didnt, work

-----Mensaje original-----
De: Sylvain Jaume [<a class="moz-txt-link-freetext" href="mailto:sylvain.jaume@kitware.com">mailto:sylvain.jaume@kitware.com</a>]
Enviado el: Martes, 08 de Noviembre de 2005 17:04
Para: OnezerO
CC: <a class="moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>
Asunto: Re: [vtkusers] 3D Rendering of an sliced object

Hi OnezerO,

Before your final examination, make these changes to your code:

// executing the filter
m_vtkImporter-&gt;Update();

// getting the extent of the input image m_vtkImporter-&gt;GetWholeExtent( 
extent );

// creating the extent for an image that has one more 'slice'
// in the 6 directions around the input image

        extent[0]--;
        extent[1]++;
        extent[2]--;
        extent[3]++;
        extent[4]--;
        extent[5]++;

// creating the extended image, so the input image is padded with zeros 
// i.e. black voxels vtkImageConstantPad  *m_vtkConstant = 
vtkImageConstantPad::New(); m_vtkConstant-&gt;SetInput(
m_vtkImporter-&gt;GetOutput() ); m_vtkConstant-&gt;SetOutputWholeExtent( 
extent );


Cheers,
Sylvain

OnezerO wrote:

 

    </pre>
    <blockquote type="cite">
      <pre wrap="">Can you explain me that uses of this "extent"? 
Because if this get to work i have to present this in a final 
examination and i have to know how to works every part of the code 
Thanks

-----Mensaje original-----
De: Sylvain Jaume [<a class="moz-txt-link-freetext" href="mailto:sylvain.jaume@kitware.com">mailto:sylvain.jaume@kitware.com</a>]
Enviado el: Martes, 08 de Noviembre de 2005 13:41
Para: OnezerO
CC: <a class="moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>
Asunto: Re: [vtkusers] 3D Rendering of an sliced object

Hi OnezerO,

Could you try the code I sent you in my previous email (see below)?

Cheers,
Sylvain

OnezerO wrote:



   

      </pre>
      <blockquote type="cite">
        <pre wrap="">Dont work

I did that:
ConnectPipelines(m_itkExporter , m_vtkImporter );
m_vtkImporter-&gt;Update();     

vtkImageConstantPad  *m_vtkConstant = vtkImageConstantPad::New(); 
m_vtkConstant-&gt;SetInput( m_vtkImporter-&gt;GetOutput() );

vtkContourFilter *m_vtkContour = vtkContourFilter::New(); 
m_vtkContour-&gt;SetInput( m_vtkConstant-&gt;GetOutput() );

The 3d image obtained its equals to the previous one


You say i should try this extent thing ?
-----Mensaje original-----
De: Sylvain Jaume [<a class="moz-txt-link-freetext" href="mailto:sylvain.jaume@kitware.com">mailto:sylvain.jaume@kitware.com</a>]
Enviado el: Martes, 08 de Noviembre de 2005 13:06
Para: OnezerO
CC: <a class="moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>
Asunto: Re: [vtkusers] 3D Rendering of an sliced object

Hi OnezerO,

The filter vtkImageConstantPad is in the Imaging directory:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/doc/nightly/html/classvtkImageConstantPad.html">http://www.vtk.org/doc/nightly/html/classvtkImageConstantPad.html</a>

int extent[6];
image-&gt;GetWholeExtent( extent )

extent[0]--;
extent[1]++;
extent[2]--;
extent[3]++;
extent[4]--;
extent[5]++;

vtkImageConstantPad *constantPad = vtkImageConstantPad::New();
constantPad-&gt;SetInput(image);
constantPad-&gt;SetOutputWholeExtent(extent);

vtkContourFilter *contourFilter = vtkContourFilter::New();
contourFilter-&gt;SetInput(constantPad-&gt;GetOutput());

Cheers,
Sylvain

OnezerO wrote:



  

     

        </pre>
        <blockquote type="cite">
          <pre wrap="">i didnt find this filter :(

-----Mensaje original-----
De: Sylvain Jaume [<a class="moz-txt-link-freetext" href="mailto:sylvain.jaume@kitware.com">mailto:sylvain.jaume@kitware.com</a>]
Enviado el: Martes, 08 de Noviembre de 2005 12:15
Para: OnezerO
CC: <a class="moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>
Asunto: Re: [vtkusers] 3D Rendering of an sliced object

Hi OnezerO,

Did you use vtkConstantPadFilter before applying vtkContourFilter as 
it was answered previously?

Cheers,
Sylvain

OnezerO wrote:



 

    

       

          </pre>
          <blockquote type="cite">
            <pre wrap="">Hello, i'm send this post again because i think that i dont explain 
my problem very well... I have a series of images that represents a 
3d figure, this images was preprocesing with itk i'm receiving it 
with a Importer from vtk, i pass the data throught a Contourfilter 
and then by a SmoothFilter, the resulting 3d images has openings 
upside and downside, i wanna close this holes... how i do it???

Regards


-------------------------------------------------------------------
-
-
-
-
-

_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: 
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a> Follow this link to
      

         

            </pre>
          </blockquote>
        </blockquote>
      </blockquote>
      <pre wrap="">subscribe/unsubscribe:


   

      </pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap=""><a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>




   

      

         

            </pre>
          </blockquote>
          <pre wrap=""> 

    

       

          </pre>
        </blockquote>
        <pre wrap="">  

     

        </pre>
      </blockquote>
      <pre wrap="">
   

      </pre>
    </blockquote>
    <pre wrap="">
 

    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
</body>
</html>