
Ce qui suit n'a pas été relu.
Youpi, c'est parti!
+ ///< Return the last coordinate' value. + coord get_slice() const + { + return slice_; + }
///< :(
+ + /*! + ** \brief Instantiate a temporary read-only slicing morpher. + ** \arg ima The image. + ** \arg slice The slice. + ** + ** A slice of the image will be viewed. + ** + ** \code + ** #include <oln/morpher/slicing_morpher.hh> + ** #include <oln/basics2d.hh> + ** #include <ntg/all.hh> + ** int main() + ** { + ** oln::image2d<ntg::rgb_8> imc = oln::load(IMG_IN "lena.ppm"); + ** oln::save(oln::morpher::slicing_morph(imc, 5), + ** IMG_OUT "oln_morpher_slicing_morpher.pgm"); + ** } Bien.
Pour ma curiosité perso, y a t il un super enchaînement de morphers qui permet d'avoir non pas la 5ieme colonne mais la 5ieme ligne? [Je pense que la réponse est: "code toi-meme un rotate_morpher".]
+#endif // !SLICING_MORPHER
Au cas où je ne l'ai pas dit: OLN_MORPHER_SLICING_MORPHER. -- Niels