source: trunk/loci/visbio/identity.m @ 485

Revision 485, 662 bytes checked in by curtis, 15 years ago (diff)

Move M files to main VisBio folder; update version number and what's new.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1function [result] = identity(pix, params)
2%identity returns the input pixels with no changes, for testing
3%
4%  pix    - a 3D array of pixels dimensioned (Y, X, N)
5%  params - not used
6
7if size(pix, 1) == 0
8  if size(params, 1) == 0
9    % return parameter list with default values
10    % (no parameters for identity)
11    result = {};
12  else
13    % input dimensions must be prepended to parameter list
14    leny = params(1);
15    lenx = params(2);
16    num = params(3);
17
18    % return output image dimensions for the given
19    % input dimensions and parameter values
20    result = [leny lenx num];
21  end
22else
23  % process pixels (or not, in this case)
24  result = pix;
25end
Note: See TracBrowser for help on using the repository browser.