Skip to content
Snippets Groups Projects
Commit 9a2e366a authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

ENH: inverse start index and size

parent e288efd7
No related branches found
No related tags found
No related merge requests found
......@@ -474,8 +474,6 @@ ImageFileWriter<TInputImage>
/** Parse region size modes */
if(m_FilenameHelper->BoxIsSet())
{
std::cout << "need to set image io" << std::endl;
std::string buf; // Have a buffer string
std::stringstream ss(m_FilenameHelper->GetBox()); // Insert the string into a stream
......@@ -489,18 +487,17 @@ ImageFileWriter<TInputImage>
typename InputImageType::IndexType start;
typename InputImageType::SizeType size;
start[0] = tokens[0]; // first index on X
start[1] = tokens[1]; // first index on Y
size[0] = tokens[2]; // size along X
size[1] = tokens[3]; // size along Y
start[0] = tokens[0]; // first index on X
start[1] = tokens[2]; // first index on Y
inputRegion.SetSize(size);
inputRegion.SetIndex(start);
}
std::cout << "inputRegion " << inputRegion << std::endl;
}
/**
* Determine of number of pieces to divide the input. This will be the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment