Skip to content
Snippets Groups Projects
Commit bc1af98e authored by Julien Michel's avatar Julien Michel
Browse files

Changement dans la méthode de segmentation

parent 9a265b19
No related branches found
No related tags found
No related merge requests found
......@@ -155,8 +155,8 @@ RCC8GraphFileReader<TOutputGraph>
nImages=it.Get()->GetSegmentationImageIndex();
}
}
nImages = 2*(nImages+1);
std::string prefix = m_FileName.substr(0,m_FileName.length()-5);
nImages = nImages+1;
std::string prefix = m_FileName.substr(0,m_FileName.length()-4);
itk::OStringStream oss;
......
......@@ -181,12 +181,12 @@ RCC8GraphFileWriter<TInputGraph>
if(m_WriteSegmentationImages)
{
std::string prefix = m_FileName.substr(0,m_FileName.length()-5);
std::string prefix = m_FileName.substr(0,m_FileName.length()-4);
itk::OStringStream oss;
// then read the images
for(unsigned int i=1;i<=2*(maxSegImageIndex+1);++i)
for(unsigned int i=1;i<=maxSegImageIndex+1;++i)
{
oss.str("");
oss<<prefix<<i<<m_ImageExtension;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment