}
ImageInfoUR::~ImageInfoUR() {
- this->m_Image->Delete();
}
void ImageInfoUR::SetImageName(const std::string &imgName) {
if (!this->m_OnDisk) {
this->SaveImageAsMHD(gPath);
}
- this->m_Image->Delete();
+ this->m_Image = NULL;
this->SetStatus(false);
}
void ImageInfoUR::LoadImageMHDToMemory(const std::string& gPath) {
w->SetCompression(false);
w->SetFileDimensionality(this->m_Image->GetDataDimension());
w->SetFileName(filename.c_str());
- w->Update();
w->Write();
- w->Delete();
}
void ImageInfoUR::RemoveImageFromDisk(const std::string& gPath)