Mercurial > hg > octave-image
changeset 38:b159b4da576f
(for Jeff Orchard) add GPL copyright notice
author | pkienzle |
---|---|
date | Thu, 28 Nov 2002 03:11:17 +0000 |
parents | 019b3990965b |
children | 1e648d79c0ef |
files | imrotate.m imtranslate.m |
diffstat | 2 files changed, 47 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/imrotate.m +++ b/imrotate.m @@ -1,10 +1,27 @@ +## Copyright (C) 2002 Jeff Orchard +## +## This program is free software; you can redistribute it and/or +## modify it under the terms of the GNU General Public License +## as published by the Free Software Foundation; either version 2 +## of the License, or (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + ## -*- texinfo -*- -## @deftypefn {Function File} {} imrotate(@var{M}, @var{theta}, @var{method}, @var{bbox}) +## @deftypefn {Function File} {} +## imrotate(@var{M}, @var{theta}, @var{method}, @var{bbox}) ## Rotation of a 2D matrix. ## ## Applies a rotation of @var{THETA} degrees to matrix @var{M}. ## -## The @var{method} argument is not implemented, and is only included for compatibility with Matlab. +## The @var{method} argument is not implemented. ## This function uses Fourier interpolation, ## decomposing the rotation matrix into 3 shears. ##
--- a/imtranslate.m +++ b/imtranslate.m @@ -1,15 +1,32 @@ -# -*- texinfo -*- -# @deftypefn {Function File} {@var{Y}} = imtranslate (@var{M}, @var{x}, @var{y} [, @var{bbox}]) -# Translate a 2D image by (x,y) using Fourier interpolation. -# -# @var{M} is a matrix, and is translated to the right by @var{X} pixels -# and translated up by @var{Y} pixels. -# -# @var{bbox} can be either 'crop' or 'wrap' (default). -# -# @end deftypefn +## Copyright (C) 2002 Jeff Orchard +## +## This program is free software; you can redistribute it and/or +## modify it under the terms of the GNU General Public License +## as published by the Free Software Foundation; either version 2 +## of the License, or (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# Author: Jeff Orchard <jjo@cs.sfu.ca> +## -*- texinfo -*- +## @deftypefn {Function File} {@var{Y}} = +## imtranslate (@var{M}, @var{x}, @var{y} [, @var{bbox}]) +## Translate a 2D image by (x,y) using Fourier interpolation. +## +## @var{M} is a matrix, and is translated to the right by @var{X} pixels +## and translated up by @var{Y} pixels. +## +## @var{bbox} can be either 'crop' or 'wrap' (default). +## +## @end deftypefn + +## Author: Jeff Orchard <jjo@cs.sfu.ca> function Y = imtranslate(X, a, b, bbox_in)