Bonjour Guillaume,

Thanks for the suggestion, but that did not work either.

(gdb) ptype class itk::ImageSource
No struct type named itk.

I'm trying to determine how to get to the Image pixel array from the OTB
reader or filter classes.  The software guide shows how to import an array
into an image in order to write it to a file, but not the converse.  I'm
trying to do the reverse.  I made a more detailed post on the developers
list a moment ago.

John

On Fri, Jan 30, 2015 at 3:17 AM, Guillaume Pasero <[email protected]>
wrote:

>  Hi,
>
> I am not sure of what you want to do but the help in gdb suggests :
> > ptype class itk::ImageSource
>
> You may have a better overview of the inherited classes by browsing the
> doxygen :
> for OTB : http://orfeo-toolbox.org/doxygen/classes.html
> for ITK : http://www.itk.org/Doxygen46/html/classes.html
>
> Regards,
> Guillaume
>
> Le 29/01/2015 23:08, John Davis a écrit :
>
> Hello
>
>  I am trying to find out what is going on in the array within a simple
> file reader example, I can do this with gdb
>
>  (gdb)  ptype reader.m_Pointer
>
>  and get this result:
>
>  type = class otb::ImageFileReader<otb::Image<float, 2u>,
> otb::DefaultConvertPixelTraits<float> >
>     [with TOutputImage = otb::Image<float, 2u>, ConvertPixelTraits =
> otb::DefaultConvertPixelTraits<float>]
>         : public itk::ImageSource<TOutputImage> {
>   private:
>     otb::ImageIOBase::Pointer m_ImageIO;
>     bool m_UserSpecifiedImageIO;
>     DataObjectIdentifierType m_FileName;
>     bool m_UseStreaming;
>     DataObjectIdentifierType m_ExceptionMessage;
>     itk::ImageIORegion m_ActualIORegion;
>     otb::ExtendedFilenameToReaderOptions::Pointer m_FilenameHelper;
>     unsigned int m_AdditionalNumber;
>
>    public:
>     static Pointer New(void);
>     virtual itk::LightObject::Pointer Creat .... stuff truncated
>
>  And it shows me that this class inherits from
> itk::ImageSource<TOutputImage>
>
>  But how do I follow the chain and get to the imageSource?
>
>  I've tried all the following but they don't work
> o ptype reader.m_Pointer.ImageSource
>  o ptype reader.m_Pointer.ImageSource<TOutputImage>
>  o ptype itk::ImageSource
>  o ptype itk::ImageSource<TOutputImage>
>
>  John
>
>  --
> --
> 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.
>
>
>
> --
>   <http://www.c-s.fr>  *Guillaume PASERO*
> Ingénieur d'études et développement
>  *Business Unit E-SPACE & Geo Information*
> <https://thor.si.c-s.fr/blogs/cs-blogs-business/>* - Département
> APPLICATIONS*
>
> *CS Systèmes d'Information*
> Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
> 31506 Toulouse Cedex 05 - FRANCE
> +33 561 17 64 21 - [email protected]
>
> --
> --
> 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.
>



-- 
John F. Davis
919-888-8358

-- 
-- 
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