function [cent,sp2sp,imtilt] = ppfakeparams(impixels,mmsize)
% Function PPFAKEPARAMS
%
%    [cent,sp2sp,imtilt] = ppfakeparams(impixels,mmsize)
%
%    PPFAKEPARAMS generates image centre (CENT), spot spacing (SP2SP) and
%    image tilt (IMTILT) data for fake pepperpot images, based on the image
%    size in pixels (IMPIXELS) and mm (MMSIZE).

    if nargin ~= 2
        error('Need 2 input arguments: [cent,sp2sp,imtilt] = ppfakeparams(impixels,mmsize)') ;
    elseif nargout ~= 3
        error('Need 2 output arguments: [cent,sp2sp,imtilt] = ppfakeparams(impixels,mmsize)') ;
    end

    cent = [1024 1024] ;
    imtilt = 0 ;
    phospix = impixels./mmsize ;
    sp2sp = phospix.*3 ;

    return