2018-05-27 14:01 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001388Orfeo Toolbox (OTB)Generalpublic2017-04-28 12:58
Assigned To 
Summary0001388: OTB 5.10 : cast error
DescriptionI'm using bindings python and when I connect two applications together (extractROI and ClassificationMapRegularization), i've an issue.

the error is : itk::ERROR: InputImageParameter(0x2246a70): Cast from N3otb11VectorImageIfLj2EEE to N3otb11VectorImageIfLj2EEE not authorized.

if applications are used separately, it works.

I attached a script to reproduce the issue.

TagsNo tags attached.
Attached Files

related to 0001394acknowledgedgpasero Image type conversion using python binding 



Ludovic (developer)


Some change have been made in the log message and it now output :
Cast from N3otb11VectorImageIfLj2EEE to N3otb5ImageItLj2EEE not authorized.

But still, the log message with type (N3otb11VectorImageIfLj2EEE) is not explicit enough to provide users a way to understand the problem.

Here your problem is that ClassificationMapRegularization take Uint16 Image as input but ExtractROI output a Float Vector Image.
Unfortunately the image type conversion when you connect image is not handled by OTB for now.

I will investigate a way to have a more understandable error message but there is no solution for your problem immediately.

We should define and implement the behavior of image conversion when connecting applications.


Ludovic (developer)

I open a new feature request for the image conversion when the python binding is used to connect applications.

Then it will be possible to solve this issue.

-Issue History
Date Modified Username Field Change
2017-04-20 13:44 ArthurV New Issue
2017-04-20 13:44 ArthurV File Added: test_otb.py
2017-04-21 11:55 Ludovic Assigned To => Ludovic
2017-04-21 11:55 Ludovic Status new => assigned
2017-04-21 18:02 Ludovic Note Added: 0004132
2017-04-28 12:36 Ludovic Note Added: 0004153
2017-04-28 12:36 Ludovic Assigned To Ludovic =>
2017-04-28 12:36 Ludovic Status assigned => confirmed
2017-04-28 12:58 Ludovic Relationship added related to 0001394
+Issue History