## RE: [Vxl-users] 2d transformation + resampling

 RE: [Vxl-users] 2d transformation + resampling From: Ian Scott - 2004-03-19 11:48:11 ```Walter, Sorry, the file vil_warp.h (and the test example tests/test_warp.cxx) were added to the cvs after the last release. They will be in the next release. In the meantime, you can either get the latest version of vxl from the CVS repository (http://vxl.sourceforge.net/#download), or even download just vil_warp.h from the repository via ViewCVS http://cvs.sourceforge.net/viewcvs.py/*checkout*/vxl/vxl/core/vil/vil_warp.h ?content-type=text%2Fplain&rev=HEAD I don't know if it will compile in vxl-1.0.0, but it shouldn't be too hard to make it work - it is a very simple function. Ian > -----Original Message----- > From: vxl-users-admin@... > [mailto:vxl-users-admin@...]On Behalf Of Walter > Nunziati > Sent: Friday, March 19, 2004 11:29 AM > To: vxl-users@... > Subject: Re: [Vxl-users] 2d transformation + resampling > > > Ian Scott wrote: > > >vimt_transform_2d merely represents a planar 2-D transform. > It has no image > >methods itself. The transform is restricted to set of > efficiently calculable > >values. > > > >vil_warp provides a general means of warping a vil_image through an > >arbitrary warp with an arbitrary sampling scheme. I guess > with a little glue > >class you could use a vimt_transform_2d with vil_warp. > > > >struct mapper { > >vimt_transform_2d t; > >void mapper(double ox, double oy, double &ix, double &iy) > >{ > > vgl_vector_2d p = t(ox, oy); > > ix=p.x(); iy=p.y(); > >} > > > >See > >http://cvs.sourceforge.net/viewcvs.py/vxl/vxl/core/vil/tests/ test_warp.cxx?r >ev=1.3&view=markup for an example of using vil_warp() > >Ian. > > Ian, thank you for your help. I have checked the warp example, but i have problems in compiling it. The problem is that i don't have the header vil_warp.h (and related headers, such as vil_memory_image_of.h) into the library package. I guess those headers should be present at the location "vxl-1.0.0/core/vil/", together with others vil_* headers, is that right? I have installed the library from the tar.gz currently present on sourceforge, on a linux box. Can you please tell me what i'm doing wrong? Walter ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Vxl-users mailing list Vxl-users@... https://lists.sourceforge.net/lists/listinfo/vxl-users ```

 [Vxl-users] 2d transformation + resampling From: Walter Nunziati - 2004-03-18 18:04:01 ```Hi, i need to implement a planar homography between two images taken from a rotating/zooming stationary camera. I think that the "right" class to do so is vimt_transform_2d, in the vimt package. Is this the most suitable solution? Can i choose the resampling method (e.g. linear, bilinear, ecc.)? Thank you very much. Walter Nunziati ```
 RE: [Vxl-users] 2d transformation + resampling From: Ian Scott - 2004-03-18 18:36:29 ```vimt_transform_2d merely represents a planar 2-D transform. It has no image methods itself. The transform is restricted to set of efficiently calculable values. vil_warp provides a general means of warping a vil_image through an arbitrary warp with an arbitrary sampling scheme. I guess with a little glue class you could use a vimt_transform_2d with vil_warp. struct mapper { vimt_transform_2d t; void mapper(double ox, double oy, double &ix, double &iy) { vgl_vector_2d p = t(ox, oy); ix=p.x(); iy=p.y(); } See http://cvs.sourceforge.net/viewcvs.py/vxl/vxl/core/vil/tests/test_warp.cxx?r ev=1.3&view=markup for an example of using vil_warp() Ian. > -----Original Message----- > From: vxl-users-admin@... > [mailto:vxl-users-admin@...]On Behalf Of Walter > Nunziati > Sent: Thursday, March 18, 2004 6:04 PM > To: vxl-users@... > Subject: [Vxl-users] 2d transformation + resampling > > > Hi, > > i need to implement a planar homography between two images > taken from a > rotating/zooming stationary camera. I think that the "right" > class to do > so is vimt_transform_2d, in the vimt package. Is this the > most suitable > solution? Can i choose the resampling method (e.g. linear, > bilinear, ecc.)? > > Thank you very much. > > Walter Nunziati > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Vxl-users mailing list > Vxl-users@... > https://lists.sourceforge.net/lists/listinfo/vxl-users > ```
 Re: [Vxl-users] 2d transformation + resampling From: Walter Nunziati - 2004-03-19 11:30:47 ```Ian Scott wrote: >vimt_transform_2d merely represents a planar 2-D transform. It has no image >methods itself. The transform is restricted to set of efficiently calculable >values. > >vil_warp provides a general means of warping a vil_image through an >arbitrary warp with an arbitrary sampling scheme. I guess with a little glue >class you could use a vimt_transform_2d with vil_warp. > >struct mapper { >vimt_transform_2d t; >void mapper(double ox, double oy, double &ix, double &iy) >{ > vgl_vector_2d p = t(ox, oy); > ix=p.x(); iy=p.y(); >} > >See >http://cvs.sourceforge.net/viewcvs.py/vxl/vxl/core/vil/tests/test_warp.cxx?r >ev=1.3&view=markup for an example of using vil_warp() > >Ian. > > Ian, thank you for your help. I have checked the warp example, but i have problems in compiling it. The problem is that i don't have the header vil_warp.h (and related headers, such as vil_memory_image_of.h) into the library package. I guess those headers should be present at the location "vxl-1.0.0/core/vil/", together with others vil_* headers, is that right? I have installed the library from the tar.gz currently present on sourceforge, on a linux box. Can you please tell me what i'm doing wrong? Walter ```
 RE: [Vxl-users] 2d transformation + resampling From: Ian Scott - 2004-03-19 11:48:11 ```Walter, Sorry, the file vil_warp.h (and the test example tests/test_warp.cxx) were added to the cvs after the last release. They will be in the next release. In the meantime, you can either get the latest version of vxl from the CVS repository (http://vxl.sourceforge.net/#download), or even download just vil_warp.h from the repository via ViewCVS http://cvs.sourceforge.net/viewcvs.py/*checkout*/vxl/vxl/core/vil/vil_warp.h ?content-type=text%2Fplain&rev=HEAD I don't know if it will compile in vxl-1.0.0, but it shouldn't be too hard to make it work - it is a very simple function. Ian > -----Original Message----- > From: vxl-users-admin@... > [mailto:vxl-users-admin@...]On Behalf Of Walter > Nunziati > Sent: Friday, March 19, 2004 11:29 AM > To: vxl-users@... > Subject: Re: [Vxl-users] 2d transformation + resampling > > > Ian Scott wrote: > > >vimt_transform_2d merely represents a planar 2-D transform. > It has no image > >methods itself. The transform is restricted to set of > efficiently calculable > >values. > > > >vil_warp provides a general means of warping a vil_image through an > >arbitrary warp with an arbitrary sampling scheme. I guess > with a little glue > >class you could use a vimt_transform_2d with vil_warp. > > > >struct mapper { > >vimt_transform_2d t; > >void mapper(double ox, double oy, double &ix, double &iy) > >{ > > vgl_vector_2d p = t(ox, oy); > > ix=p.x(); iy=p.y(); > >} > > > >See > >http://cvs.sourceforge.net/viewcvs.py/vxl/vxl/core/vil/tests/ test_warp.cxx?r >ev=1.3&view=markup for an example of using vil_warp() > >Ian. > > Ian, thank you for your help. I have checked the warp example, but i have problems in compiling it. The problem is that i don't have the header vil_warp.h (and related headers, such as vil_memory_image_of.h) into the library package. I guess those headers should be present at the location "vxl-1.0.0/core/vil/", together with others vil_* headers, is that right? I have installed the library from the tar.gz currently present on sourceforge, on a linux box. Can you please tell me what i'm doing wrong? Walter ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Vxl-users mailing list Vxl-users@... https://lists.sourceforge.net/lists/listinfo/vxl-users ```
 Re: [Vxl-users] 2d transformation + resampling From: Walter Nunziati - 2004-03-19 14:30:33 ```Ian Scott wrote: >Walter, > >Sorry, the file vil_warp.h (and the test example tests/test_warp.cxx) were >added to the cvs after the last release. They will be in the next release. > >In the meantime, you can either get the latest version of vxl from the CVS >repository (http://vxl.sourceforge.net/#download), or even download just >vil_warp.h from the repository via ViewCVS >http://cvs.sourceforge.net/viewcvs.py/*checkout*/vxl/vxl/core/vil/vil_warp.h >?content-type=text%2Fplain&rev=HEAD >I don't know if it will compile in vxl-1.0.0, but it shouldn't be too hard >to make it work - it is a very simple function. > >Ian > > > > Thank you Ian, i have added vil_warp.h, vil_memory_image_of.h and vil_nearest_neighbour.h to 1.0.0 headers. Everything works fine. Walter ```