%dip_positionpercentile   Position of the percentile along projectDim.
%    out = dip_positionpercentile(in, mask, percentile, projectDim, firstMax)
%
%   in
%      Image.
%   mask
%      Mask image. Can be [] for no mask.
%   percentile
%      Real number.
%   projectDim
%      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.

