[Insight-users] manage argumets : input, output, parameters
elhadj meljane
elhadj.meljane at gmail.com
Mon Oct 4 06:10:29 EDT 2010
It seems that metaCommand can also do that, I started to see some examples,
they use the function
GetValueAsFloat to get the values as follow:
float Point;
args.Point =command.GetValueAsFloat("Point","floatval")
I want to use this for vectors (float Point[3]), I'm looking to solve this
problem and a good tutorial for metaCommand
Thanks for your help!
On Fri, Oct 1, 2010 at 11:20 AM, elhadj meljane <elhadj.meljane at gmail.com>wrote:
> Hi all,
> Thanks a lot for all these information, I'm going to look ...
>
>
> On Thu, Sep 30, 2010 at 10:33 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:
>
>> We have used tclap as part of the Slicer3 execution model. We found it
>> to be an excellent command line parser.
>>
>> Bill
>>
>> On Thu, Sep 30, 2010 at 1:44 PM, Michael Jackson
>> <mike.jackson at bluequartz.net> wrote:
>> > You might want to try the TCLAP project also. Pretty clean
>> implementation
>> > and easy to understand and use. If you look at
>> > "
>> http://www.bluequartz.net/projects/ElectronicImaging/SoftwareDevelopment/html/index.html
>> "
>> > under the "Getting values into the Computation Engine" there is a
>> section
>> > that compares the use of TCLAP with Boost::program_options which is
>> another
>> > option you could try.
>> >
>> > http://tclap.sourceforge.net/
>> > ___________________________________________________________
>> > Mike Jackson www.bluequartz.net
>> > Principal Software Engineer mike.jackson at bluequartz.net
>> > BlueQuartz Software Dayton, Ohio
>> >
>> >
>> >
>> > On Sep 30, 2010, at 1:03 PM, elhadj meljane wrote:
>> >
>> >> Hi all,
>> >> I have a program that use too many arguments: input, output parameters,
>> >> the program work with
>> >>
>> >> >./runProgram ImageInput ImageOutput Parameter1 .... ParameterN
>> >>
>> >> Sometimes, just 1 prameter is needed.
>> >>
>> >> I want to make the program easy to use, for example :
>> >>
>> >> >./runProgram -I ImageInput -O ImageOutput -o option1 -p Parameter (in
>> >> > this case I dont need to give the rest of the parameters)
>> >> >./runProgram -I ImageInput -O ImageOutput -o option2 -p1 Parameter1
>> ...
>> >> > -pN parameterN
>> >>
>> >>
>> >> Do I need to implement method for this with "If" ....
>> >> or there exist itk methods that help to do that ?
>> >>
>> >> Thanks
>> >> _____________________________________
>> >> Powered by www.kitware.com
>> >>
>> >> Visit other Kitware open-source projects at
>> >> http://www.kitware.com/opensource/opensource.html
>> >>
>> >> Kitware offers ITK Training Courses, for more information visit:
>> >> http://www.kitware.com/products/protraining.html
>> >>
>> >> Please keep messages on-topic and check the ITK FAQ at:
>> >> http://www.itk.org/Wiki/ITK_FAQ
>> >>
>> >> Follow this link to subscribe/unsubscribe:
>> >> http://www.itk.org/mailman/listinfo/insight-users
>> >
>> > _____________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Kitware offers ITK Training Courses, for more information visit:
>> > http://www.kitware.com/products/protraining.html
>> >
>> > Please keep messages on-topic and check the ITK FAQ at:
>> > http://www.itk.org/Wiki/ITK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.itk.org/mailman/listinfo/insight-users
>> >
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101004/55c39375/attachment.htm>
More information about the Insight-users
mailing list