https://public.kitware.com/Wiki/api.php?action=feedcontributions&user=134.174.140.104&feedformat=atom
KitwarePublic - User contributions [en]
2024-03-29T09:16:28Z
User contributions
MediaWiki 1.38.6
https://public.kitware.com/Wiki/index.php?title=ITK/Winter_v4_2011_Meeting&diff=35582
ITK/Winter v4 2011 Meeting
2010-12-14T19:06:39Z
<p>134.174.140.104: </p>
<hr />
<div>The ITKv4 Winter meeting is set. <br />
Here is the webpage for this meeting: https://www.events.harvard.edu/web/2281<br />
<br />
*'''Dates: February 2-3, 2011''' <br />
*'''City: Boston, MA'''<br />
*'''Location: Harvard Medical School, Department of Systems Biology, 200 Longwood Avenue, Warren Alpert Building 563, Boston, MA 02115'''<br />
<br />
'''We will meet all day on February 2 (from 8am) and February 3, wrapping up around 5pm on February 3.'''<br />
<br />
If you have any questions regarding travel, feel free to contact Nicole Wong at nicole_wong@hms.harvard.edu or 617-432-6839.<br />
<br />
== Travel / Hotel Information ==<br />
<br />
Since the meeting starts at 8 am on February 2, we recommend people to arrange their hotel accommodation for the previous night!<br />
<br />
https://www.events.harvard.edu/profile/web/index.cfm?PKwebID=0x2281abcd&varPage=location<br />
<br />
== Registration Information ==<br />
<br />
[https://www.events.harvard.edu/30325 Registration is now open for the ITKv4 Winter Meeting.]<br />
<br />
Dinner is optional and will be planned for Wednesday evening, but is NOT included in the registration fee of $60.<br />
<br />
The last day to register for the ITK4 meeting is Wednesday, January 26, 2011.<br />
<br />
No refunds will be offered for cancellations after January 26, 2011.<br />
<br />
== Meeting Room ==<br />
<br />
We will be meeting in the '''Room 563''' in the Warren Alpert Building.<br />
<br />
== Meeting Agenda ==</div>
134.174.140.104
https://public.kitware.com/Wiki/index.php?title=ITK/Examples/Meshes/QuadEdgeMeshNormalFilter&diff=35473
ITK/Examples/Meshes/QuadEdgeMeshNormalFilter
2010-12-13T16:50:07Z
<p>134.174.140.104: </p>
<hr />
<div>This example reads a mesh from a vtk file. It then compute normals for the mesh.<br />
<br />
The sample sphere file is [http://www.itk.org/Wiki/images/8/89/Sphere.vtk.zip here].<br />
<br />
==QuadEdgeMeshNormalFilter.cxx==<br />
<source lang="cpp"><br />
#include "itkVector.h"<br />
#include "itkQuadEdgeMesh.h"<br />
#include "itkVTKPolyDataReader.h"<br />
<br />
#include "itkQuadEdgeMeshExtendedTraits.h"<br />
#include "itkQuadEdgeMeshNormalFilter.h"<br />
#include <stdlib.h><br />
<br />
int main( int argc, char* argv[] )<br />
{<br />
if( argc < 2 )<br />
{<br />
std::cout <<"This program requires at least 1 argument" <<std::endl;<br />
std::cout <<"1- Input filename" <<std::endl;<br />
std::cout <<"2- Weight type" <<std::endl;<br />
std::cout <<" * 0: GOURAUD" <<std::endl;<br />
std::cout <<" * 1: THURMER" <<std::endl;<br />
std::cout <<" * 2: AREA" <<std::endl;<br />
return EXIT_FAILURE;<br />
}<br />
<br />
const unsigned int Dimension = 3;<br />
typedef double CoordType;<br />
<br />
typedef itk::QuadEdgeMesh< CoordType, Dimension > InputMeshType;<br />
<br />
typedef itk::Vector< CoordType, Dimension > VectorType;<br />
<br />
typedef itk::QuadEdgeMeshExtendedTraits <<br />
VectorType,<br />
Dimension,<br />
2,<br />
CoordType,<br />
CoordType,<br />
VectorType,<br />
bool,<br />
bool > Traits;<br />
<br />
typedef itk::QuadEdgeMesh < VectorType, Dimension, Traits > OutputMeshType;<br />
<br />
typedef itk::VTKPolyDataReader< InputMeshType > ReaderType;<br />
typedef itk::QuadEdgeMeshNormalFilter< InputMeshType, OutputMeshType > NormalFilterType;<br />
NormalFilterType::WeightType weight_type;<br />
<br />
int param = atoi( argv[2] );<br />
<br />
if( ( param < 0 ) || ( param > 2 ) )<br />
{<br />
std::cout <<"Weight type must be either: " <<std::endl;<br />
std::cout <<" * 0: GOURAUD" <<std::endl;<br />
std::cout <<" * 1: THURMER" <<std::endl;<br />
std::cout <<" * 2: AREA" <<std::endl;<br />
return EXIT_FAILURE;<br />
}<br />
else<br />
{<br />
switch( param )<br />
{<br />
default:<br />
case 0:<br />
weight_type = NormalFilterType::GOURAUD;<br />
break;<br />
case 1:<br />
weight_type = NormalFilterType::THURMER;<br />
break;<br />
case 2:<br />
weight_type = NormalFilterType::AREA;<br />
break;<br />
}<br />
}<br />
<br />
ReaderType::Pointer reader = ReaderType::New( );<br />
reader->SetFileName( argv[1] );<br />
<br />
try<br />
{<br />
reader->Update( );<br />
}<br />
catch( itk::ExceptionObject & excp )<br />
{<br />
std::cerr << "Exception thrown while reading the input file " << std::endl;<br />
std::cerr << excp << std::endl;<br />
return EXIT_FAILURE;<br />
}<br />
<br />
InputMeshType::Pointer mesh = reader->GetOutput( );<br />
<br />
NormalFilterType::Pointer normals = NormalFilterType::New( );<br />
normals->SetInput( mesh );<br />
normals->SetWeight( weight_type );<br />
<br />
try<br />
{<br />
normals->Update( );<br />
}<br />
catch( itk::ExceptionObject & excp )<br />
{<br />
std::cerr << excp << std::endl;<br />
return EXIT_FAILURE;<br />
}<br />
<br />
OutputMeshType::Pointer output = normals->GetOutput( );<br />
<br />
std::cout << normals << std::endl;<br />
<br />
return EXIT_SUCCESS;<br />
}<br />
</source><br />
<br />
==CMakeLists.txt==<br />
<source lang="cmake"><br />
<br />
</source></div>
134.174.140.104
https://public.kitware.com/Wiki/index.php?title=ITK/Examples/Meshes/QuadEdgeMeshNormalFilter&diff=35472
ITK/Examples/Meshes/QuadEdgeMeshNormalFilter
2010-12-13T16:47:21Z
<p>134.174.140.104: /* QuadEdgeMeshNormalFilter.cxx */</p>
<hr />
<div>==QuadEdgeMeshNormalFilter.cxx==<br />
<source lang="cpp"><br />
#include "itkVector.h"<br />
#include "itkQuadEdgeMesh.h"<br />
#include "itkVTKPolyDataReader.h"<br />
<br />
#include "itkQuadEdgeMeshExtendedTraits.h"<br />
#include "itkQuadEdgeMeshNormalFilter.h"<br />
#include <stdlib.h><br />
<br />
int main( int argc, char* argv[] )<br />
{<br />
if( argc < 2 )<br />
{<br />
std::cout <<"This program requires at least 1 argument" <<std::endl;<br />
std::cout <<"1- Input filename" <<std::endl;<br />
std::cout <<"2- Weight type" <<std::endl;<br />
std::cout <<" * 0: GOURAUD" <<std::endl;<br />
std::cout <<" * 1: THURMER" <<std::endl;<br />
std::cout <<" * 2: AREA" <<std::endl;<br />
return EXIT_FAILURE;<br />
}<br />
<br />
const unsigned int Dimension = 3;<br />
typedef double CoordType;<br />
<br />
typedef itk::QuadEdgeMesh< CoordType, Dimension > InputMeshType;<br />
<br />
typedef itk::Vector< CoordType, Dimension > VectorType;<br />
<br />
typedef itk::QuadEdgeMeshExtendedTraits <<br />
VectorType,<br />
Dimension,<br />
2,<br />
CoordType,<br />
CoordType,<br />
VectorType,<br />
bool,<br />
bool > Traits;<br />
<br />
typedef itk::QuadEdgeMesh < VectorType, Dimension, Traits > OutputMeshType;<br />
<br />
typedef itk::VTKPolyDataReader< InputMeshType > ReaderType;<br />
typedef itk::QuadEdgeMeshNormalFilter< InputMeshType, OutputMeshType > NormalFilterType;<br />
NormalFilterType::WeightType weight_type;<br />
<br />
int param = atoi( argv[2] );<br />
<br />
if( ( param < 0 ) || ( param > 2 ) )<br />
{<br />
std::cout <<"Weight type must be either: " <<std::endl;<br />
std::cout <<" * 0: GOURAUD" <<std::endl;<br />
std::cout <<" * 1: THURMER" <<std::endl;<br />
std::cout <<" * 2: AREA" <<std::endl;<br />
return EXIT_FAILURE;<br />
}<br />
else<br />
{<br />
switch( param )<br />
{<br />
default:<br />
case 0:<br />
weight_type = NormalFilterType::GOURAUD;<br />
break;<br />
case 1:<br />
weight_type = NormalFilterType::THURMER;<br />
break;<br />
case 2:<br />
weight_type = NormalFilterType::AREA;<br />
break;<br />
}<br />
}<br />
<br />
ReaderType::Pointer reader = ReaderType::New( );<br />
reader->SetFileName( argv[1] );<br />
<br />
try<br />
{<br />
reader->Update( );<br />
}<br />
catch( itk::ExceptionObject & excp )<br />
{<br />
std::cerr << "Exception thrown while reading the input file " << std::endl;<br />
std::cerr << excp << std::endl;<br />
return EXIT_FAILURE;<br />
}<br />
<br />
InputMeshType::Pointer mesh = reader->GetOutput( );<br />
<br />
NormalFilterType::Pointer normals = NormalFilterType::New( );<br />
normals->SetInput( mesh );<br />
normals->SetWeight( weight_type );<br />
<br />
try<br />
{<br />
normals->Update( );<br />
}<br />
catch( itk::ExceptionObject & excp )<br />
{<br />
std::cerr << excp << std::endl;<br />
return EXIT_FAILURE;<br />
}<br />
<br />
OutputMeshType::Pointer output = normals->GetOutput( );<br />
<br />
std::cout << normals << std::endl;<br />
<br />
return EXIT_SUCCESS;<br />
}<br />
</source><br />
<br />
==CMakeLists.txt==<br />
<source lang="cmake"><br />
<br />
</source></div>
134.174.140.104