You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: nii_reslice1mm.m
    path of file: ./repos/bspm/thirdparty/nii_tools
    
    the code of the file until where you have to start completion: function nii_reslice1mm(PP, interpolation)
% Re-slice and Re-orient images to 1mm isotropic resolution
% The function reslices the input image(s) to a resolution of 1mm.
% Output images (with the prefix "r") are written in the transverse
% orientation (using information from the NIfTI header).
% 

    
function nii_reslice1mm(PP, interpolation)
% Re-slice and Re-orient images to 1mm isotropic resolution
% The function reslices the input image(s) to a resolution of 1mm.
% Output images (with the prefix "r") are written in the transverse
% orientation (using information from the NIfTI header).
% 
% From email "Re: reslicing in SPM5" posted  Mon, 5 Jun 2006 13:02:05 +0100
%_______________________________________________________________________
% interpolation influences function spm_slice_vol
% interpolation -  sets the interpolation method for the resampling.
%               0          Zero-order hold (nearest neighbour).
%               1          First-order hold (trilinear interpolation).
%               2->127     Higher order Lagrange (polynomial) interpolation using
%                          different holds (second-order upwards).

% If no arguments, then prompt for images
if nargin<1, PP = spm_select(Inf,'image','Select files to reorient'); end