|
NotesForDevelopers
Notes and guidelines for people who want to contribute patches or code to the Gerardus project
Contributing to the project
Sending patchesIf you spot a bug in the code, or want to improve a function, but you are not in the committers list, this is the simplest way to contribute.
$ svn co http://gerardus.googlecode.com/svn/trunk/ gerardus $ svn up $ cd gerardus $ svn diff > file.patch Matlab code guidelines
% SCINRRD_INTERSECT_PLANE Intersection of a plane with an image volume % % [IM, GX, GY, GZ, MIDX] = SCINRRD_INTERSECT_PLANE(NRRD, M, V) % % IM is an image that displays the intersection of the plane with the % image volume in SCI NRRD format. Voxels that fall outside the image % volume are returned as NaN. % % GX, GY, GZ are matrices of the same size as IM, and contain the % Cartesian coordinates of the voxels in IM. You can visualize the % resulting plane using % % >> surf(gx, gy, gz, im, 'EdgeColor', 'none') [...] % Authors: John Doe <johndoe@gmail.com> % Copyright © 2011 University of Oxford % Version: 0.1.0 % $Rev$ % $Date$ % % University of Oxford means the Chancellor, Masters and Scholars of % the University of Oxford, having an administrative office at % Wellington Square, Oxford OX1 2JD, UK. % % This file is part of Gerardus. % % 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 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 ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. The offer of this % program under the terms of the License is subject to the License % being interpreted in accordance with English Law and subject to any % action against the University of Oxford being under the jurisdiction % of the English Courts. % % You should have received a copy of the GNU General Public License % along with this program. If not, see <http://www.gnu.org/licenses/>.
$ svn propset svn:keywords "Rev Date" newfile.m $ svn propset svn:eol-style native newfile.m % keep track of where the rotation point is using a boolean vector for the % row position, and another one for the column position. The rotation point % is at the center of the grid % check arguments error(nargchk(3, 4, nargin, 'struct')); error(nargoutchk(0, 5, nargout, 'struct')); % defaults
if (nargin < 4 || isempty(interp))
interp = 'nn';
endlmax = ceil(sqrt(sum(([nrrd.axis.size] - 1).^2))); [gc, gr] = meshgrid(-lmax:lmax, -lmax:lmax); grcs(1, :) = grcs(1, :) + idxm(1); Adding support for a new filter to itk_imfilter()(This section is work in progress) Suppose you want to add support for the itk::BinaryDilateImageFilter to itk_imfilter() so that you can run binary dilation from Matlab.
|
► Sign in to add a comment