void ImageInfoUR::SaveImageAsMHD(const StringType& gPath) {
this->m_OnDisk = true;
StringType filename = gPath + this->m_ImageName;
+ //managing temporary files
+ mkstemp((char*) filename.c_str());
VTKMetaImageWriterPointerType w = VTKMetaImageWriterPointerType::New();
w->SetInput(this->m_Image);
w->SetCompression(false);
}
void ImageInfoUR::RemoveImageFromDisk(const StringType& gPath) {
-
+ std::cout << "Borrando archivo" << endl;
+ StringType filename = gPath + this->m_ImageName;
+ std::cout << filename << std::endl;
+ unlink((char*) filename.c_str());
}