Skip to content

Commit

Permalink
Updated copyright for all M-files to use single-line format. Reformat…
Browse files Browse the repository at this point in the history
…ted some help text that was longer than 80 columns.
  • Loading branch information
remo-pillat committed Nov 9, 2022
1 parent 6b1b17f commit 8125a05
Show file tree
Hide file tree
Showing 172 changed files with 602 additions and 2,696 deletions.
18 changes: 1 addition & 17 deletions toolbox/@Camera/Camera.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,7 @@
%
% See also CentralCamera, SphericalCamera, FishEyeCamera, CatadiptricCamera.


% Copyright (C) 1995-2009, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

% TODO:
% make a parent imaging class and subclass perspective, fisheye, panocam
Expand Down
3 changes: 2 additions & 1 deletion toolbox/@Camera/plot_camera.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
function h = plot_camera(c, varargin)
%Camera.plot_camera Display camera icon in world view
%
% C.plot_camera(OPTIONS) draw a camera as a simple 3D model in the current
Expand All @@ -17,7 +18,7 @@
% - A line between the red faces is parallel to the x-axis, between the
% green faces is parallel to the y-axis.

function h = plot_camera(c, varargin)
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

opt.pose = c.T;
opt.scale = [];
Expand Down
1 change: 1 addition & 0 deletions toolbox/@CentralCamera/..@Camera/showpose.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
% The sides are colored red, green, blue corresponding to the X, Y, Z axes
% respectively.

% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

function h = showpose(c, T, sz)

Expand Down
20 changes: 1 addition & 19 deletions toolbox/@CentralCamera/CentralCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,25 +81,7 @@
%
% See also Camera.


% Copyright (C) 1993-2017, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

%TODO
% method to undo lens distortion
Expand Down
20 changes: 1 addition & 19 deletions toolbox/@CentralCamera/estpose.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,7 @@
% Int. Journal on Computer Vision,
% vol. 81, pp. 155-166, Feb. 2009.


% Copyright (C) 1993-2017, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

function T = estpose(c, XYZ, uv)

Expand Down
20 changes: 1 addition & 19 deletions toolbox/@CentralCamera/flowfield.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,7 @@
%
% See also QUIVER.


% Copyright (C) 1993-2017, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

function flowfield(cam, vel)
a = 50:100:1000;
Expand Down
5 changes: 3 additions & 2 deletions toolbox/@CentralCamera/private/getrotT.m
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
function [R, T]=getrotT(wpts,cpts);

% This routine solves the exterior orientation problem for a point cloud
%getrotT This routine solves the exterior orientation problem for a point cloud
% given in both camera and world coordinates.

% wpts = 3D points in arbitrary reference frame
% cpts = 3D points in camera reference frame

% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

n=size(wpts,1);
M=zeros(3);
Expand Down
18 changes: 1 addition & 17 deletions toolbox/@CentralCamera/private/invhomog.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,7 @@
%
% See also HOMOGRAPHY.


% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for Matlab (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% RTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with RTB. If not, see <http://www.gnu.org/licenses/>.
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

function solutions = invhomog(H, varargin)

Expand Down
20 changes: 1 addition & 19 deletions toolbox/@CentralCamera/visjac_e.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,7 @@
%
% See also CentralCamera.visjac_p, CentralCamera.visjac_p_polar, CentralCamera.visjac_l.


% Copyright (C) 1993-2017, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

function L = visjac_e(cam, A, plane)

Expand Down
20 changes: 1 addition & 19 deletions toolbox/@CentralCamera/visjac_l.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,7 @@
%
% See also CentralCamera.visjac_p, CentralCamera.visjac_p_polar, CentralCamera.visjac_e.


% Copyright (C) 1993-2017, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

function L = visjac_l(cam, f, plane)

Expand Down
21 changes: 1 addition & 20 deletions toolbox/@CentralCamera/visjac_p.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,7 @@
%
% See also CentralCamera.visjac_p_polar, CentralCamera.visjac_l, CentralCamera.visjac_e.



% Copyright (C) 1993-2017, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

function L = visjac_p(cam, uv, Z)

Expand Down
21 changes: 1 addition & 20 deletions toolbox/@CentralCamera/visjac_p_polar.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,7 @@
%
% See also CentralCamera.visjac_p, CentralCamera.visjac_l, CentralCamera.visjac_e.



% Copyright (C) 1993-2017, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

function J = visjac_p_polar(cam, rt, Z)

Expand Down
22 changes: 1 addition & 21 deletions toolbox/@SphericalCamera/SphericalCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,7 @@
%
% See also Camera.




% Copyright (C) 1993-2017, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

classdef SphericalCamera < Camera

Expand Down
20 changes: 2 additions & 18 deletions toolbox/@SphericalCamera/plot_camera.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,8 @@
% TODO
% - proper animation, keep handles within the camera object

% Copyright (C) 1993-2017, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

function plot_camera(cam, varargin)


Expand Down
20 changes: 1 addition & 19 deletions toolbox/@SphericalCamera/scamera.m
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat


% Copyright (C) 1993-2017, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
classdef scamera
properties
name
Expand Down
19 changes: 1 addition & 18 deletions toolbox/@SphericalCamera/showpose.m
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@

% Copyright 2022-2023 Peter Corke, Witold Jachimczyk, Remo Pillat

% Copyright (C) 1993-2017, by Peter I. Corke
%
% This file is part of The Machine Vision Toolbox for Matlab (MVTB).
%
% MVTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% MVTB 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 Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
function showcam(c, T, P)

if nargin < 2
Expand Down
Loading

0 comments on commit 8125a05

Please sign in to comment.