On my Fedora 16 machine, I have an executable file named 'WarpImageMultiTransform', and I can run it when I cd into the folder that contains it:
[huangchao@localhost bin]$ ./WarpImageMultiTransform --help
Usage:
./WarpImageMultiTransform ImageDimension moving_image output_image -R reference_image --use-NN SeriesOfTransformations--(See Below)
But when I try to run it from other folder, it says the file doesn't exist:
[huangchao@localhost antsIntro]$ ls /home/huangchao/ANTs-1.9.x-Linux/bin/WarpImageMultiTransform
/home/huangchao/ANTs-1.9.x-Linux/bin/WarpImageMultiTransform
[huangchao@localhost antsIntro]$ ./home/huangchao/ANTs-1.9.x-Linux/bin/WarpImageMultiTransform --help
-bash: ./home/huangchao/ANTs-1.9.x-Linux/bin/WarpImageMultiTransform: No such file or directory
Does anyone know why?