29 #ifndef __creaImageWxAnySimpleDlg_h_INCLUDED__
30 #define __creaImageWxAnySimpleDlg_h_INCLUDED__
34 #include <itkImageFileReader.h>
35 #include <boost/any.hpp>
52 wxString i_title =_T(
""),
53 const std::string i_namedescp =
"localdatabase_Descriptor.dscp",
54 const std::string i_namedb =
"Local Database"
59 void setExts(std::vector<std::string>);
78 std::vector<
size_t>
getDims(){
return m_AnyDims;}
81 std::vector<std::type_info *>
getTypes(){
return m_AnyType;}
97 template <
typename TImage>
98 std::vector<typename TImage::Pointer> getTemplatedImagesSelected()
100 std::vector<typename TImage::Pointer> imgs;
101 std::vector<boost::any>::iterator it =
m_AnyImages.begin();
104 imgs.push_back(boost::any_cast<TImage*> (*it));
109 template <
class TImage>
113 typename ConnectorType::Pointer connector = ConnectorType::New();
114 connector->SetInput(i_Img);
115 connector->GetImporter()->SetDataScalarTypeToUnsignedChar();
117 vtkImageData *im = vtkImageData::New();
118 im->ShallowCopy(connector->GetOutput());
124 template <
typename TImage>
144 void readImg(
const std::string &i_name);
145 void readDicomImg(
const std::vector<std::string> &i_names);
148 const size_t getNumberOfDimensions(
const std::string &i_name);
149 const std::type_info & getType(
const std::string &i_name);
154 #endif //__creaImageWxAnySimpleDlg_h_INCLUDED__