PDA

View Full Version : Xquant Command scripting convention


ThomasKUL
30th October 2009, 13:29
Hi,

I'm working with the XQuant module and I'm writing some scripts that use commands from this module in order to automate my procedure. So basicly I want to perform some operations on a certain data set. For instance first apply a threshold, then label the images, then etc.

However the help doc. is really abstract and a bit confusing:

This is the general form: exeCommand <Command>

But:

Quantification:algo exeCommand "cmd=I_analyze input=grey_ima param= outanl=label_ima"

Whereas:
Quantification:algo exeCommand "cmd=threshold input=grey_ima param=0,100output=bin_ima"

As you can see they use in the first line "outanl whereas in the second they use output. What is the general convention on how to write the command section (<Command>)?

Suppose I want to do a watershed segmentation on my data, which requires two different inputs. Or suppose I want to do an I_analyze, but I'm only interested in the 3D Volume.

How would this work?

Kind regards,

Thomas

PS: I didn't found any information in the refguide concerning scripting

mmarsh
30th October 2009, 13:52
Hi Thomas,

I think the syntax for all of the Quantification commands may not fully documented for use by the Tcl scripting interface. But you can quickly and easily find the syntax by inspection.

Try using the GUI to connect the Quantification operator and parameters required to accomplish the needed computation. Then at the Avizo console, type "Quantification:algo getCommand" The output will show give you the command name and the expected parameters. To embed the Quantification operation in a Tcl script, you will need to create an HxVisilog module and then have it execute the command with the appropriate syntax.

Here is a snippet of what a Tcl script might look like.
create HxVisilog {Quant}
Quant exeCommand "cmd=catchbasin input=landscape input=markers output=labels"
remove Quant

Does this help?
Mike

ThomasKUL
3rd November 2009, 14:28
yes, very nice. That was just what I was looking for.

Thanks alot Mike!

Thomas