%dip_positionmaximum   Position of the maximum along projectDim.
%    out = dip_positionmaximum(in, mask, dim, firstMax)
%
%   in
%      Image.
%   mask
%      Mask image. Can be [] for no mask.
%   dim
%      Integer number.
%   firstMax
%      Boolean number (1 or 0).

% (C) Copyright 1999-2000               Pattern Recognition Group
%     All rights reserved               Faculty of Applied Physics
%                                       Delft University of Technology
%                                       Lorentzweg 1
%                                       2628 CJ Delft
%                                       The Netherlands
%
% Cris Luengo,April 2001.

