[Insight-users] raw files output directory

Nasser Kashou kashoun at ee.eng.ohio-state.edu
Tue, 27 Jan 2004 21:06:13 -0500 (EST)


Hello,

I've been using and older version of ITK source code for MultiResMIReg and all my output pgms were directed to the output directory, but now I'm using a newer version that I had for a while and it outputs raw  files but  to the root directory and not to the output directory written in the param file.
I tried to add m_DirectoryName(""),  to the file itkImageFileWriter.txx and some minor changes.  I got an file.mhd to output to the relevant dir, but of size 0.  
So my question is what is  a quick fix to using the raw file results but outputing them to a different dir than the root?
Note. I don't have the most recent source code.

template <class TInputImage>
ImageFileWriter<TInputImage>
::ImageFileWriter():
  m_DirectoryName(""), //*********ADDED
  m_FileName(""),
  m_ImageIO(0), m_UserSpecifiedImageIO(false),
  m_UserSpecifiedIORegion(false)
{
	
}