#!/usr/bin/perl -w #--------------------------------------------------------------------------- #@COPYRIGHT : # Copyright 1996, John G. Sled, # McConnell Brain Imaging Centre, # Montreal Neurological Institute, McGill University. # Permission to use, copy, modify, and distribute this # software and its documentation for any purpose and without # fee is hereby granted, provided that the above copyright # notice appear in all copies. The author and McGill University # make no representations about the suitability of this # software for any purpose. It is provided "as is" without # express or implied warranty. #---------------------------------------------------------------------------- #$RCSfile: field2imp.in,v $ #$Revision: 1.1 $ #$Author: bert $ #$Date: 2003/04/16 14:29:34 $ #$State: Exp $ #--------------------------------------------------------------------------- # ------------------------------ MNI Header ---------------------------------- #@NAME : field2imp #@INPUT : #@OUTPUT : #@RETURNS : #@DESCRIPTION: create a compact representation of the given field #@METHOD : #@GLOBALS : #@CALLS : #@CREATED : August 28, 1996 J.G.Sled #@MODIFIED : # $Id: field2imp.in,v 1.1 2003/04/16 14:29:34 bert Exp $ #----------------------------------------------------------------------------- use MNI::Startup qw(nocputimes); use MNI::Spawn; use MNI::FileUtilities qw(check_output_dirs); use MNI::PathUtilities qw(split_path); use Getopt::Tabular; # these values are chosen to be less smooth than most fields $lambda = 0.01; $distance = 50; $subsample = 4; &Initialize; # Set global variables for calling various programs MNI::Spawn::SetOptions (strict => 2); &RegisterPrograms([qw(spline_smooth)]); Spawn(['spline_smooth', '-full_support', '-distance', $distance, '-b_spline', '-lambda', $lambda, '-subsample', $subsample, '-novolume', $input_volume, '-compact', $output_imp, '-clobber']); # ------------------------------ MNI Header ---------------------------------- #@NAME : &SetHelp #@INPUT : none #@OUTPUT : none #@RETURNS : nothing #@DESCRIPTION: Sets the $Help and $Usage globals, and registers them # with ParseArgs so that user gets useful error and help # messages. #@METHOD : #@GLOBALS : $Help, $Usage #@CALLS : #@CREATED : #@MODIFIED : #----------------------------------------------------------------------------- sub SetHelp { $Version = '1.10'; $LongVersion = 'Package MNI N3, version 1.10, compiled by nicks@minerva (x86_64-unknown-linux-gnu) on 2010-02-20 at 17:32:37'; $Usage = <