[ptx] stitcher -> nona

Pablo d'Angelo pablo at mathematik.uni-ulm.de
Mon Dec 1 13:58:15 GMT 2003


Hallo Kai-Uwe,

Kai-Uwe Behrmann schrieb am Montag, den 01. Dezember 2003:

> I understand now, an additional feature.

Well I want to save the layers with the correct masks, so I have
to determine the seams. 

> So what mean:
>     float getDistanceFromCenter(vigra::Diff2D & p)
>         {
> ??          vigra::Diff2D lr = ul + image.size() - vigra::Diff2D(1,1);
> 
> Ahh image.size() gives a point including width,height. Should work.
> 
> ok          if (p.x < ul.x || p.x >= lr.x || p.y < ul.y || p.y >= lr.y) {
>                 // not in ROI
> ok              return FLT_MAX;
>             }
> ??          return dist.accessor()(dist.upperLeft()+(p-ul));

return dist[x + y*linewidth];

simply returns the distance from the center for point p (in panorama
coordinates) for the given image. the distance images have been computed
during remapping.

ciao
  Pablo
--
http://wurm.wohnheim.uni-ulm.de/~redman/
Please use PGP


More information about the ptX mailing list