Diff of /PaniniGeneral.h [c017ac] .. [d17898] Maximize Restore

  Switch to unified view

a/PaniniGeneral.h b/PaniniGeneral.h
1
/* PaniniGeneral.h      15Jan2010 TKS
1
/* PaniniGeneral.h      15Jan2010 TKS
2
3
Copyright (c) 2010, Thomas K Sharpless
4
All rights reserved.
5
6
Redistribution and use in source and binary forms, with or without
7
modification, are permitted provided that the following conditions are met:
8
    * Redistributions of source code must retain the above copyright
9
      notice, this list of conditions and the following disclaimer.
10
    * Redistributions in binary form must reproduce the above copyright
11
      notice, this list of conditions and the following disclaimer in the
12
      documentation and/or other materials provided with the distribution.
13
    * Neither the name of the <organization> nor the
14
      names of its contributors may be used to endorse or promote products
15
      derived from this software without specific prior written permission.
16
17
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
21
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
2
28
3
This is the reference implementation of the General Pannini
29
This is the reference implementation of the General Pannini
4
Projection, an elaboration of the basic Pannini projection 
30
Projection, an elaboration of the basic Pannini projection 
5
discovered by Bruno Postle and Thomas Sharpless in December 
31
discovered by Bruno Postle and Thomas Sharpless in December 
6
2008 in paintings by Gian Paolo Pannini (1691-1765).
32
2008 in paintings by Gian Paolo Pannini (1691-1765).
7
8
    (C) copyright 2010 Thomas K Sharpless
9
Free license is hereby granted for noncommercial use
10
under the terms of the GNU Lesser General Public License 
11
version 2.1 as published by the Free Software Foundation 
12
and appearing in the file LICENSE.LGPL included in the
13
packaging of this file.  Please review the following 
14
information to ensure the requirementsGeneral of the GNU Lesser 
15
General Public License version 2.1 will be met: 
16
http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
17
33
18
It is a parameterized mapping between sphere and plane, 
34
It is a parameterized mapping between sphere and plane, 
19
that gives synthetic perspective views on the plane when
35
that gives synthetic perspective views on the plane when
20
the sphere holds a linear projection of the scene.  Sphere 
36
the sphere holds a linear projection of the scene.  Sphere 
21
coordinates (phi, theta) are equirectangular: longitude and 
37
coordinates (phi, theta) are equirectangular: longitude and