On Wednesday, May 20, 2015 at 2:01:52 AM UTC+11, Grizonnet Manuel wrote:
>
> Hi,
>
> I bet that the ImageListToVectorImageFilter can not be templated with the 
> ImageList with vector image...
>

However, I have already made a programm with ImageListToVectorImageFilter 
templated with the ImageList with vector image.
The only thing which changed it is the pixel type used by the vector image 
: 
Before, I used :
typedef float PixelFloatIn;
Now, it is :
typedef itk::RGBPixel<unsigned char>   PixelRGBOut;

I understand a little better my problem, but still not enough

 

>
> Looking at your code I could suggest an alternative strategy:
>
> - iterate over each image in the ImageList 
> - extract each band using MultiToMonoChannelExtractROI filter
> - concatenate each band in a vector with ImageListToVectorImageFilter
>
> That's more or less the strategy use in the ConcatenateImages application:
>
>
> http://hg.orfeo-toolbox.org/OTB/file/tip/Modules/Applications/AppImageUtils/app/otbConcatenateImages.cxx#l97
>
> Regards,
>
 
Thank you, I look this

Regards,
Maxime


> On 18/05/2015 02:00, collin maxime wrote:
>  
> Hi,
>
> Thanks, as a matter of fact, it is.
> I begin to be a little lost in all these types...
>
> Now, I have a new error on *otbImageListToVectorFilter* (conversion from ‘
> int’ to ‘const itk::RGBPixel<unsigned char>’ is ambiguous) :
>   In file included from /usr/local/include/otb/Common/
> otbImageListToVectorImageFilter.h:92:0,
>                  from /home/maxime/Documents/testWatershed2/src/../include
> /ProcessManager.h:22,
>                  from /home/maxime/Documents/testWatershed2/src/../include
> /ProcessManagerWithoutChannelOrder.h:13,
>                  from /home/maxime/Documents/testWatershed2/src/Main.cxx:
> 16:
> /usr/local/include/otb/Common/otbImageListToVectorImageFilter.txx: In 
> instantiation of ‘void otb::ImageListToVectorImageFilter<TImageList, 
> TVectorImage>::GenerateData() [with TImageList = otb::ImageList<otb::Image
> <itk::RGBPixel<unsigned char>, 2u> >; TVectorImage = otb::VectorImage<itk
> ::RGBPixel<unsigned char>, 2u>]’:
> /home/maxime/Documents/testWatershed2/src/Main.cxx:181:1:   required from 
> here
> /usr/local/include/otb/Common/otbImageListToVectorImageFilter.txx:80:3: 
> error: conversion from ‘int’ to ‘const itk::RGBPixel<unsigned char>’ is 
> ambiguous
>    black.Fill(0);
>    ^
> /usr/local/include/otb/Common/otbImageListToVectorImageFilter.txx:80:3: 
> note: candidates are:
> In file included from /usr/local/include/ITK-4.7/itkImageIOBase.h:27:0,
>                  from /usr/local/include/ITK-4.7/itkImageIOFactory.h:23,
>                  from /usr/local/include/otb/IO/otbImageFileReader.txx:28,
>                  from /usr/local/include/otb/IO/otbImageFileReader.h:196,
>                  from /home/maxime/Documents/testWatershed2/src/../include
> /ExtractChannels.h:15,
>                  from /home/maxime/Documents/testWatershed2/src/Main.cxx:
> 15:
> /usr/local/include/ITK-4.7/itkRGBPixel.h:86:3:
>
> ...

-- 
-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to