Hi I am writing an OTB application and getting the following error at runtime:
itk::ERROR: GDALImageIO(0xc35a30): Dimensions are not defined. Any ideas what it means? Here is the DoExecute of my (very simple) application. i think the problem comes from the way I am using itk::NaryAddImageFilter, but I don't know: FloatVectorImageListType::Pointer inList = GetParameterImageList("il"); std::vector<ExtractChannelType::Pointer> extractChannelFilters(inList->Size(), NULL); NaryAddImageFilterType::Pointer naryAdder = NaryAddImageFilterType::New(); // For each input image for (unsigned int i = 0; i < inList->Size(); i++) { // Extract first band extractChannelFilters[i] = ExtractChannelType::New(); extractChannelFilters[i]->SetInput(inList->GetNthElement(i)); extractChannelFilters[i]->SetChannel(1); // Add it naryAdder->SetInput(i, extractChannelFilters[i]->GetOutput()); } // Divide by N MultiplyImageFilterType::Pointer divideFilter = MultiplyImageFilterType::New(); divideFilter->SetInput(naryAdder->GetOutput()); divideFilter->SetConstant(1.0f/inList->Size()); // Write SetParameterOutputImage("out", divideFilter->GetOutput()); Thanks Victor Poughon -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to otb-users@googlegroups.com To unsubscribe from this group, send email to otb-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.