Dear all I am facing the same problem and could not find a solution to the following answer: "What is OTB doing to a multispectral image when the reader is instantiated using otb::Image type?" Even thought an otb::VectorImage would be more suitable the examples (e.g. ImageRegistration.cxx) provide reasonable results for multispectral images as well and I can not figure out which band / combination /amplitude is used.
Any ideas? Greetings Paul Am Mittwoch, 22. Februar 2012 16:52:52 UTC+1 schrieb Julien Michel: > > Dear Dominique, > > Could it be that you need to use a otb::VectorImage to handle multi-band > image ? otb::Image are only made for single band images. > > Please let me know, > > Regards, > > Julien > > > Le 22/02/2012 16:18, kapstad a �crit : > > Hello, I m still stuck on this problem, I can't make it clear. > > Sometimes all the bands of the image are mixed, sometimes one band > > appears and sometimes none of them! > > > > On 9 f�v, 12:05, kapstad<[email protected]> wrote: > >> Hello thanks for your response, actually I already created a mutiband > >> image with one distinctive symbol (I simply wrote R, V, B in gimp) for > >> each band in order to see which one is used. When reading and writing > >> it as an otb::image the result is a mix of all the bands, RVB appears. > >> > >> On 9 f�v, 10:20, Julien Radoux<[email protected]> wrote: > >> > >> > >> > >> > >> > >> > >> > >>> Hello, > >>> otb::image is templated on a type of pixel. If it is a scalar, I think > >>> that you get the first band. But you could also use, for instance, > >>> itk::RGBPixel , then you use three bands. Someone else could tell you > >>> more, but if you want to be sure, plug a writer or a viewer to see the > >>> image that is used. As for the choice of the band, I would suggest the > >>> red or the MIR band, for good contrast bare soil/vegetation. > >>> Hope thisz helps > >>> Julien R > >>> On 8 f�v, 16:15,kapstad<[email protected]> wrote: > >>>> Hello, when performing a registration between two multispectral images > >>>> (Spot scenes) I use the itk::MattesMutualInformationImageToImageMetric > >>>> instantiated over two otb::Image images. > >>>> When reading a multispectral image with a otb::Image class, which one > >>>> of the band is used? Actually it seems that all of them are used as a > >>>> unique one (how does the concatenation is done?). I tried to find it > >>>> out in the documentation unsuccessfully... > >>>> Does someone has an idea of how I could evaluate which band is the > >>>> best one for the registration process? Maybe calculate an ACP before? > >>>> Regards > >>>> Dominique > > > -- > Julien MICHEL > CNES - DCT/SI/AP - BPI 1219 > 18, avenue Edouard Belin > 31401 Toulouse Cedex 09 - France > Tel: +33 561 282 894 - Fax: +33 561 283 109 > > -- -- 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/groups/opt_out.
