Hi, On 03/10/2014 07:11 AM, emre wrote: > It seems, GenericRSResampleImageFilter does the job but if you compile > with debug flags, it takes quite some time to generate output. On the > other hand, one should check whether the projection reference of the > image is correct (in my case, I had a cropped image with correct > extent but I realized the ProjectionKey was missing, since I had > created the image from scratch). > > I am still searching for a proper way to calculate the region > parameters of the output image. Once I find that, I will post a > working example. > > Emre > > > On Sunday, March 9, 2014 4:52:50 PM UTC+2, emre wrote: > > Hi, > I was searching for a raster functionality which works like > VectorDataProjectionFilter for raster. I read the previous posts > and encountered two suggestions. One was suggesting > StreamingResampleImageFilter and the other one was suggesting > ortho-rectification filter. The first one doesnt work at all (you > give a transformation and it does nothing. One should think about > this issue as well). > > I tried GenericRSResampleImageFilter and it takes ages to compute > projection from the images projection to the exactly same > projection (2000x2000 pixel image takes almost a minute. That is > totally strange). >
The filter is not optimized to reproject from one projection to the same projection. I don't see a reason why it should. > What I am looking for is something like gdal_translate, which > changes the projection from UTM to 4326. > This is otbcli_Orthorectification. > I find it really strange that Orfeo examples do not contain > something like that. This is like the most basic thing one would > expect from a remote sensing library. > > It would be great, if someone can provide a working code so > everybody can use in the future. If you guys believe > orthorecitification filter does this, I am really looking forward > to a working code for that as well because it requires the output > size and scale. > You can look at how the Orthorectification application is implemented : http://hg.orfeo-toolbox.org/OTB/file/tip/Applications/Projections/otbOrthoRectification.cxx > > All the best > Emre > > -- > -- > 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] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- -- 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.
