Merge pull request #5897 from Dhilan007/develop_edtaa_license

update license.
This commit is contained in:
James Chen 2014-03-21 11:09:36 +08:00
commit 368d5216ad
3 changed files with 75 additions and 45 deletions

View File

@ -33,19 +33,27 @@
*/ */
/* /*
Copyright (C) 2009-2011 Stefan Gustavson (stefan.gustavson@gmail.com) Copyright (C) 2009 Stefan Gustavson (stefan.gustavson@gmail.com)
This program is free software; you can redistribute it and/or modify it This software is distributed under the permissive "MIT License":
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT Permission is hereby granted, free of charge, to any person obtaining a copy
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or of this software and associated documentation files (the "Software"), to deal
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License in the Software without restriction, including without limitation the rights
for more details. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The GNU General Public License is available on <http://www.gnu.org/licenses/>. The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/ */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -1,33 +1,28 @@
/* /*
* Copyright 2009 Stefan Gustavson (stefan.gustavson@gmail.com) Copyright (C) 2009 Stefan Gustavson (stefan.gustavson@gmail.com)
* All rights reserved.
* This software is distributed under the permissive "MIT License":
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* 1. Redistributions of source code must retain the above copyright notice, in the Software without restriction, including without limitation the rights
* this list of conditions and the following disclaimer. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* 2. Redistributions in binary form must reproduce the above copyright furnished to do so, subject to the following conditions:
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
* THIS SOFTWARE IS PROVIDED BY STEFAN GUSTAVSON ''AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* EVENT SHALL STEFAN GUSTAVSON OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT THE SOFTWARE.
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF */
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* /*
* The views and conclusions contained in the software and documentation are
* those of the authors and should not be interpreted as representing official
* policies, either expressed or implied, of Stefan Gustavson.
*
*
* edtaa3() * edtaa3()
* *
* Sweep-and-update Euclidean distance transform of an * Sweep-and-update Euclidean distance transform of an
@ -43,18 +38,24 @@
* By Stefan Gustavson (stefan.gustavson@gmail.com). * By Stefan Gustavson (stefan.gustavson@gmail.com).
* *
* Originally written in 1994, based on a verbal * Originally written in 1994, based on a verbal
* description of the SSED8 algorithm published in the * description of Per-Erik Danielsson's SSED8 algorithm
* PhD dissertation of Ingemar Ragnemalm. This is his * as presented in the PhD dissertation of Ingemar
* algorithm, I only implemented it in C. * Ragnemalm. This is Per-Erik Danielsson's scanline
* scheme from 1979 - I only implemented it in C.
* *
* Updated in 2004 to treat border pixels correctly, * Updated in 2004 to treat border pixels correctly,
* and cleaned up the code to improve readability. * and cleaned up the code to improve readability.
* *
* Updated in 2009 to handle anti-aliased edges. * Updated in 2009 to handle anti-aliased edges,
* as published in the article "Anti-aliased Euclidean
* distance transform" by Stefan Gustavson and Robin Strand,
* Pattern Recognition Letters 32 (2011) 252¨C257.
* *
* Updated in 2011 to avoid a corner case infinite loop. * Updated in 2011 to avoid a corner case causing an
* infinite loop for some input data.
* *
*/ */
#ifndef __EDTAA3FUNC_H__ #ifndef __EDTAA3FUNC_H__
#define __EDTAA3FUNC_H__ #define __EDTAA3FUNC_H__

View File

@ -0,0 +1,21 @@
Copyright (C) 2009 Stefan Gustavson (stefan.gustavson@gmail.com)
This software is distributed under the permissive "MIT License":
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.