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

Tentative de correction de segfault des tests.

parent 130c2652
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ ImageFileReader<TOutputImage>
// PB : the GetComponentSize() method of the itkImageIOBase class is protected.
// duplicated this method in this class (very BAD)
std::streamoff nbBytes = static_cast<std::streamoff>(this->GetComponentSize())*static_cast<std::streamoff>(region.GetNumberOfPixels());
std::streamoff nbBytes = static_cast<std::streamoff>(this->GetComponentSize())*static_cast<std::streamoff>(region.GetNumberOfPixels())*static_cast<std::streamoff>(this->GetNumberOfComponentsPerPixel());
otbMsgDevMacro(<<"NbBytes "<<nbBytes);
otbMsgDevMacro(<< "Buffer conversion required from: "
......
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