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

Depalcement de la méthode GenerateOutputInformation de protected en public.

Pour application ExtratROI, etc...
parent 1bc6cb88
No related branches found
No related tags found
No related merge requests found
......@@ -31,11 +31,11 @@ namespace otb
/** \class MultiChannelExtractROI
* \brief Extrait une partie d'une image d'une image multi-canal.
*
* Il est possible d'extraire tous les canaux de l'image ou seulement ceux prciss par l'utilisateur.
* La mthode SetChannel permet de slectionner un canal (une liste est incrmente).
* Les mthodes SetFirstChannel/SetLastChannel permettent de dfinir une liste de canaux, dfinit par cet intervalle.
 
* \note Ces classe est paramtre par le type de pixel des images d'entre et de sortie. Les images manipules dans cette classe
* Il est possible d'extraire tous les canaux de l'image ou seulement ceux pr�cis�s par l'utilisateur.
 
* Les m�thodes SetFirstChannel/SetLastChannel permettent de d�finir une liste de canaux, d�finit par cet intervalle.
 
* \note Ces classe est param�tr�e par le type de pixel des images d'entr�e et de sortie. Les images manipul�es dans cette classe
* sont de type "itk::VectorImage".
*
*/
......@@ -84,15 +84,25 @@ public:
itkSetMacro(LastChannel,unsigned int);
itkGetConstMacro(LastChannel,unsigned int);
/** ExtractImageFilter can produce an image which is a different
* resolution than its input image. As such, ExtractImageFilter
* needs to provide an implementation for
* GenerateOutputInformation() in order to inform the pipeline
* execution model. The original documentation of this method is
* below.
*
* \sa ProcessObject::GenerateOutputInformaton() */
virtual void GenerateOutputInformation();
/** Typedef Liste des canaux */
typedef typename std::vector<unsigned int> ChannelsType;
/** Renvoie la liste des canaux traits */
/** Renvoie la liste des canaux trait�s */
ChannelsType GetChannels()const
{
return (m_Channels);
}
/** Renvoie le nombre de canaux traits */
/** Renvoie le nombre de canaux trait�s */
unsigned int GetNbChannels()const
{
return (m_Channels.size());
......@@ -114,16 +124,6 @@ protected:
~MultiChannelExtractROI() {};
void PrintSelf(std::ostream& os, itk::Indent indent) const;
/** ExtractImageFilter can produce an image which is a different
* resolution than its input image. As such, ExtractImageFilter
* needs to provide an implementation for
* GenerateOutputInformation() in order to inform the pipeline
* execution model. The original documentation of this method is
* below.
*
* \sa ProcessObject::GenerateOutputInformaton() */
virtual void GenerateOutputInformation();
/** ExtractImageFilter peut etre implementee comme un filtre multithreaded.
* \sa ImageToImageFilter::ThreadedGenerateData(),
* ImageToImageFilter::GenerateData() */
......@@ -134,12 +134,12 @@ private:
MultiChannelExtractROI(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
/** Premier/Dernier canal traiter [1...] */
/** Premier/Dernier canal � traiter [1...] */
unsigned int m_FirstChannel;
unsigned int m_LastChannel;
/** Liste des canaux traiter [1...] */
/** Liste des canaux � traiter [1...] */
ChannelsType m_Channels;
/** Liste des canaux qui seront rellement traits [1...] */
/** Liste des canaux qui seront r�ellement trait�s [1...] */
ChannelsType m_ChannelsWorks;
/** */
bool m_ChannelsWorksBool;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment