Skip to content
Snippets Groups Projects
Commit 1da78bdf authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Correction suite à l'évolution dans ITK du type ValueType :

ITK 3.6 => VlueType = TPixel
ITK 3.8 => ValueType = VariableLenght<TPixel>
Solution: utilisation de InternalPixelType à la place de ValueType
parent 0a6867f1
Branches
Tags
No related merge requests found
......@@ -142,13 +142,13 @@ namespace otb {
for(unsigned int i=0;i<l1;i++)
{
// Fill the output pixel
output[i]=static_cast<typename OutputImageType::ValueType>(input1It.Get()[i]);
output[i]=static_cast<typename OutputImageType::InternalPixelType>(input1It.Get()[i]);
}
// Loop though each band of the second image
for(unsigned int i = 0;i<l2;i++)
{
// Fill the output pixel
output[i+l1]=static_cast<typename OutputImageType::ValueType>(input2It.Get()[i]);
output[i+l1]=static_cast<typename OutputImageType::InternalPixelType>(input2It.Get()[i]);
}
// Set the output pixel
outputIt.Set(output);
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment