[ITK] [ITK-users] Error itk 4.8 .mhd

JoseBarretoT jose.de.paula at live.com
Wed Oct 7 12:46:34 EDT 2015


I'm trying to open a file but .mhd always fall here ..
Line 139 of the file itkImageFileReader.hxx
the code I am using is:


typedef itk::Image<unsigned char, 3> ImageType;
	typedef itk::ImageFileReader<ImageType> ReaderType;
	ReaderType::Pointer reader = ReaderType::New();
	char* local =
clXUteis::ConverterStringParaChar(clXUteis::CapturaPasta(DadosPaciente::id,
DadosPaciente::id2, 16, DadosSistema::caminho) + "\ESTUDO\\" +
DadosRequisicao::id_estudo + DadosRequisicao::id2_estudo +
"panoramica.mhd");
	reader->SetFileName(local);
	reader->Update();

	//Tipo  do converso
	typedef itk::ImageToVTKImageFilter<ImageType>ConnectorType;
	//Instancia Converso
	ConnectorType::Pointer connector = ConnectorType::New();
	//Instancia leitor
	//reader->Update();
	connector->SetInput(reader->GetOutput());

	vtkSmartPointer<vtkRenderWindowInteractor> renWinInteractor =
vtkSmartPointer<vtkRenderWindowInteractor>::New();

	vtkSmartPointer<vtkImageResliceMapper> image_mapper =
vtkSmartPointer<vtkImageResliceMapper>::New();
	image_mapper->SetInputData(connector->GetOutput());

//....



in order to grab the source and send to VTK.

files using ...
1621cortesParasagitais.mhd
<http://itk-users.7.n7.nabble.com/file/n36293/1621cortesParasagitais.mhd>  
1621cortesParasagitais.zraw
<http://itk-users.7.n7.nabble.com/file/n36293/1621cortesParasagitais.zraw>  




--
View this message in context: http://itk-users.7.n7.nabble.com/Error-itk-4-8-mhd-tp36293.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list