diff --git a/README.md b/README.md index 755ec5c..9149f46 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,23 @@ -# Intent of this template +### Contents -The intent of this repo is to help you get started with creating Pydra tasks. -All tasks will be inserted into pydra.tasks. namespace. +* `xmls`: a directory containing all the xmls from which pydra tasks should be generated. +* `generate_tasks.py`: the script which automatically generates pydra tasks. -# To use this template: +### How to use -1. Click on new repo. -2. Select this template from the repository template drop down list. -3. Give your repo a name. -4. Once the repo is created and cloned, search for TODO (`grep -rn TODO . `) and - replace with appropriate name. -5. One of the folders is called TODO. This should also be renamed to your package - name. -6. Add tasks to the pydra/tasks/ folder. -7. You may want to initialize a sphinx docs directory. - -# TODO: Change this README after creating your new repo. +`tools/generate_tasks.py` takes 2 optional arguments: the `output directory` and the `xml directory`. +```bash +python tools/generate_tasks.py [output directory] [xml directory] +``` -## For developers +* `output directory`: the directory that the generated tasks should be rooted at. +If omitted the current working directory is used. +* `xml directory`: a directory which contains xmls. The names of the xmls must match the names in module_list. +If omitted binary files are used which must be found on the default path. -Install repo in developer mode from the source directory. It is also useful to -install pre-commit to take care of styling via black: +### Command to use -``` -pip install -e .[dev] -pre-commit install +```bash +python tools/generate_tasks.py pydra/tasks/sem/ tools/xmls/ ``` diff --git a/tools/generate_tasks.py b/tools/generate_tasks.py new file mode 100644 index 0000000..f06d84b --- /dev/null +++ b/tools/generate_tasks.py @@ -0,0 +1,738 @@ +""" +This script generates Slicer Interfaces based on the CLI modules XML. CLI +modules are selected from the hardcoded list below and generated code is placed +in the cli_modules.py file (and imported in __init__.py). For this to work +correctly you must have your CLI executables in $PATH +""" +import keyword +import os +import shutil +import subprocess +import sys +import xml.dom.minidom + +header = """\ +\""" +Autogenerated file - DO NOT EDIT +If you spot a bug, please report it on the mailing list and/or change the generator. +\"""\n +""" + +imports = """\ +import attr +from nipype.interfaces.base import Directory, File, InputMultiPath, OutputMultiPath, traits +from pydra import ShellCommandTask +from pydra.engine.specs import SpecInfo, ShellSpec, MultiInputFile, MultiOutputFile, MultiInputObj +import pydra\n\n +""" + +setup = """\ +def configuration(parent_package="", top_path=None): + from numpy.distutils.misc_util import Configuration + + config = Configuration("{pkg_name}", parent_package, top_path) + + {sub_pks} + + return config + +if __name__ == "__main__": + from numpy.distutils.core import setup + setup(**configuration(top_path="").todict()) +""" + +# launcher_space = "" +# if len({launcher})>0: +# launcher_space = " " + +template = """\ +class {module_name}(): + def __init__(self, name="{module_name}", executable="{launcher}{module}", cache_dir=None): + self.name = name + self.executable = executable + self.cache_dir = cache_dir + \""" +{docstring}\ + \""" + def get_task(self): + input_fields = [{input_fields}] + output_fields = [{output_fields}] + + input_spec = SpecInfo(name="Input", fields=input_fields, bases=(ShellSpec,)) + output_spec = SpecInfo(name="Output", fields=output_fields, bases=(pydra.specs.ShellOutSpec,)) + + task = ShellCommandTask( + name=self.name, + executable=self.executable, + input_spec=input_spec, + output_spec=output_spec, + cache_dir=self.cache_dir + ) + return task +""" + + +def force_to_valid_python_variable_name(old_name): + """Valid c++ names are not always valid in python, so + provide alternate naming + + >>> force_to_valid_python_variable_name('lambda') + 'opt_lambda' + >>> force_to_valid_python_variable_name('inputVolume') + 'inputVolume' + """ + new_name = old_name.strip() + if new_name in keyword.kwlist: + return f"opt_{new_name}" + else: + return new_name + + +def add_class_to_package(class_codes, class_names, module_name, package_dir): + # with open(os.path.join(package_dir, "__init__.py"), mode="a+") as f: + # f.write( + # "from {module_name} import {class_names}\n".format( + # module_name=module_name, class_names=", ".join(class_names) + # ) + # ) + with open(os.path.join(package_dir, f"{module_name}.py"), mode="w") as f: + f.write(header) + f.write(imports) + f.write("\n\n".join(class_codes)) + + +def crawl_code_struct(code_struct, package_dir): + subpackages = [] + for k, v in code_struct.items(): + if isinstance(v, (str, bytes)): + module_name = k.lower() + class_name = k + class_code = v + add_class_to_package([class_code], [class_name], module_name, package_dir) + else: + l1 = {} + l2 = {} + for key in list(v.keys()): + if isinstance(v[key], (str, bytes)): + l1[key] = v[key] + else: + l2[key] = v[key] + if l2: + v = l2 + subpackages.append(k.lower()) + # with open(os.path.join(package_dir, "__init__.py"), mode="a+") as f: + # f.write(f"from {k.lower()} import *\n") + new_pkg_dir = os.path.join(package_dir, k.lower()) + if os.path.exists(new_pkg_dir): + shutil.rmtree(new_pkg_dir) + os.mkdir(new_pkg_dir) + crawl_code_struct(v, new_pkg_dir) + if l1: + for ik, iv in l1.items(): + crawl_code_struct({ik: {ik: iv}}, new_pkg_dir) + elif l1: + v = l1 + module_name = k.lower() + add_class_to_package( + list(v.values()), list(v.keys()), module_name, package_dir + ) + if subpackages: + with open(os.path.join(package_dir, "setup.py"), mode="w") as f: + f.write( + setup.format( + pkg_name=package_dir.split("/")[-1], + sub_pks="\n ".join( + [ + f'config.add_data_dir("{sub_pkg}")' + for sub_pkg in subpackages + ] + ), + ) + ) + + +def generate_all_classes( + modules_list=[], + launcher=[], + redirect_x=False, + mipav_hacks=False, + xml_dir=None, + output_dir=None, +): + """modules_list contains all the SEM compliant tools that should have wrappers created for them. + launcher contains the command line prefix wrapper arguments needed to prepare + a proper environment for each of the modules. + """ + all_code = {} + for module in modules_list: + print("=" * 80) + print(f"Generating Definition for module {module}") + print("^" * 80) + package, code, module = generate_class( + module, + launcher, + redirect_x=redirect_x, + mipav_hacks=mipav_hacks, + xml_dir=xml_dir, + ) + cur_package = all_code + module_name = package.strip().split(" ")[0].split(".")[-1] + for package in package.strip().split(" ")[0].split(".")[:-1]: + if package not in cur_package: + cur_package[package] = {} + cur_package = cur_package[package] + if module_name not in cur_package: + cur_package[module_name] = {} + cur_package[module_name][module] = code + package_dir = output_dir if output_dir else os.getcwd() + if not os.path.exists(package_dir): + os.makedirs(package_dir) + # if os.path.exists(os.path.join(package_dir, "__init__.py")): + # os.unlink(os.path.join(package_dir, "__init__.py")) + crawl_code_struct(all_code, package_dir) + os.system(f"black {package_dir}") + + +def generate_class( + module, + launcher, + strip_module_name_prefix=True, + redirect_x=False, + mipav_hacks=False, + xml_dir=None, +): + if xml_dir: + dom = dom_from_xml(module, xml_dir) + else: + dom = dom_from_binary(module, launcher, mipav_hacks=mipav_hacks) + if strip_module_name_prefix: + module_name = module.split(".")[-1] + else: + module_name = module + inputTraits = [] + outputTraits = [] + outputs_filenames = {} + + # self._outputs_nodes = [] + + docstring = "" + + for desc_str in [ + "title", + "category", + "description", + "version", + "documentation-url", + "license", + "contributor", + "acknowledgements", + ]: + el = dom.getElementsByTagName(desc_str) + if el and el[0].firstChild and el[0].firstChild.nodeValue.strip(): + docstring += " {desc_str}: {el}\n".format( + desc_str=desc_str, el=el[0].firstChild.nodeValue.strip() + ) + if desc_str == "category": + category = el[0].firstChild.nodeValue.strip() + + for paramGroup in dom.getElementsByTagName("parameters"): + indices = paramGroup.getElementsByTagName("index") + max_index = 0 + for index in indices: + if int(index.firstChild.nodeValue) > max_index: + max_index = int(index.firstChild.nodeValue) + for param in paramGroup.childNodes: + if param.nodeName in ["label", "description", "#text", "#comment"]: + continue + traitsParams = {} + + longFlagNode = param.getElementsByTagName("longflag") + if longFlagNode: + # Prefer to use longFlag as name if it is given, rather than the parameter name + longFlagName = longFlagNode[0].firstChild.nodeValue + # SEM automatically strips prefixed "--" or "-" from from xml before processing + # we need to replicate that behavior here The following + # two nodes in xml have the same behavior in the program + # --test + # test + longFlagName = longFlagName.lstrip(" -").rstrip(" ") + name = longFlagName + name = force_to_valid_python_variable_name(name) + traitsParams["argstr"] = f"--{longFlagName} " + else: + name = param.getElementsByTagName("name")[0].firstChild.nodeValue + name = force_to_valid_python_variable_name(name) + if param.getElementsByTagName("index"): + traitsParams["argstr"] = "" + else: + traitsParams["argstr"] = f"--{name} " + + if ( + param.getElementsByTagName("description") + and param.getElementsByTagName("description")[0].firstChild + ): + traitsParams["help_string"] = ( + param.getElementsByTagName("description")[0] + .firstChild.nodeValue.replace('"', '\\"') + .replace("\n", ", ") + ) + else: + traitsParams["help_string"] = "" + + # argsDict = { + # "directory": "%s", + # "file": "%s", + # "integer": "%d", + # "double": "%f", + # "float": "%f", + # "image": "%s", + # "transform": "%s", + # "boolean": "", + # "string-enumeration": "%s", + # "string": "%s", + # "integer-enumeration": "%s", + # "table": "%s", + # "point": "%s", + # "region": "%s", + # "geometry": "%s", + # } + + # if param.nodeName.endswith("-vector"): + # traitsParams["argstr"] += "%s" + # else: + # traitsParams["argstr"] += argsDict[param.nodeName] + + index = param.getElementsByTagName("index") + if index: + traitsParams["position"] = int(index[0].firstChild.nodeValue) - ( + max_index + 1 + ) + + desc = param.getElementsByTagName("description") + if index: + traitsParams["help_string"] = desc[0].firstChild.nodeValue + + typesDict = { + "integer": "traits.Int", + "double": "traits.Float", + "float": "traits.Float", + "image": "File", + "transform": "File", + "boolean": "traits.Bool", + "string": "traits.Str", + "file": "File", + "geometry": "File", + "directory": "Directory", + "table": "File", + "point": "traits.List", + "region": "traits.List", + } + + if param.nodeName.endswith("-enumeration"): + type = "traits.Enum" + values = [ + '"{value}"'.format( + value=str(el.firstChild.nodeValue).replace('"', "") + ) + for el in param.getElementsByTagName("element") + ] + elif param.nodeName.endswith("-vector"): + type = "MultiInputObj" + if param.nodeName in [ + "file", + "directory", + "image", + "geometry", + "transform", + "table", + ]: + values = [ + "{type}(exists=True)".format( + type=typesDict[param.nodeName.replace("-vector", "")] + ) + ] + else: + values = [typesDict[param.nodeName.replace("-vector", "")]] + if mipav_hacks is True: + traitsParams["sep"] = ";" + else: + traitsParams["sep"] = "," + elif ( + param.getAttribute("multiple") == "true" + and "input" not in name + and "output" not in name + ): + type = "MultiInputFile" + # type = "File" + if param.nodeName in [ + "file", + "directory", + "image", + "geometry", + "transform", + "table", + ]: + values = [ + "{type}(exists=True)".format(type=typesDict[param.nodeName]) + ] + elif param.nodeName in ["point", "region"]: + values = [ + "{type}(traits.Float(), minlen=3, maxlen=3)".format( + type=typesDict[param.nodeName] + ) + ] + else: + values = [typesDict[param.nodeName]] + traitsParams["sep"] = "," + # traitsParams["argstr"] += "..." + else: + values = [] + type = typesDict[param.nodeName] + + if param.nodeName in [ + "file", + "directory", + "image", + "geometry", + "transform", + "table", + ]: + if not param.getElementsByTagName("channel"): + raise RuntimeError( + "Insufficient XML specification: each element of type 'file', 'directory', 'image', 'geometry', 'transform', or 'table' requires 'channel' field.\n{0}".format( + traitsParams + ) + ) + elif ( + param.getElementsByTagName("channel")[0].firstChild.nodeValue + == "output" + ): + type = type.replace("Input", "Output") + # traitsParams["hash_files"] = False + inputTraits.append( + '("{name}", attr.ib(type={type}, metadata={{{params}}}))'.format( + name=name, type=type, params=parse_params(traitsParams) + ) + ) + # traitsParams["exists"] = True + traitsParams.pop("argstr") + traitsParams["output_file_template"] = f"{{{name}}}" + # traitsParams.pop("hash_files") + outputTraits.append( + '("{name}", attr.ib(type={type}, metadata={{{params}}}))'.format( + name=name, + type=f"pydra.specs.{type}", + params=parse_params(traitsParams), + ) + ) + + outputs_filenames[name] = gen_filename_from_param(param, name) + elif ( + param.getElementsByTagName("channel")[0].firstChild.nodeValue + == "input" + ): + # if param.nodeName in [ + # "file", + # "directory", + # "image", + # "geometry", + # "transform", + # "table", + # ] and type not in ["InputMultiPath", "traits.List"]: + # traitsParams["exists"] = True + inputTraits.append( + '("{name}", attr.ib(type={type}, metadata={{{params}}}))'.format( + name=name, type=type, params=parse_params(traitsParams) + ) + ) + else: + raise RuntimeError( + "Insufficient XML specification: each element of type 'file', 'directory', 'image', 'geometry', 'transform', or 'table' requires 'channel' field to be in ['input','output'].\n{0}".format( + traitsParams + ) + ) + else: # For all other parameter types, they are implicitly only input types + inputTraits.append( + '("{name}", attr.ib(type={type}, metadata={{{params}}}))'.format( + name=name, type=type, params=parse_params(traitsParams) + ) + ) + + if mipav_hacks: + blacklisted_inputs = ["maxMemoryUsage"] + inputTraits = [ + trait for trait in inputTraits if trait.split()[0] not in blacklisted_inputs + ] + + compulsory_inputs = [ + 'xDefaultMem = traits.Int(help_string="Set default maximum heap size", argstr="-xDefaultMem %d")', + 'xMaxProcess = traits.Int(1, help_string="Set default maximum number of processes.", argstr="-xMaxProcess %d", usedefault=True)', + ] + inputTraits += compulsory_inputs + + input_fields = "" + for trait in inputTraits: + input_fields += f"{trait}, " + + output_fields = "" + for trait in outputTraits: + output_fields += f"{trait}, " + + output_filenames = ",".join( + [f'"{key}":"{value}"' for key, value in outputs_filenames.items()] + ) + + main_class = template.format( + module_name=module_name, + docstring=docstring, + input_fields=input_fields, + output_fields=output_fields, + launcher=" ".join(launcher), + module=module, + ) + + return category, main_class, module_name + + +def dom_from_binary(module, launcher, mipav_hacks=False): + # cmd = CommandLine(command = "Slicer3", args="--launch %s --xml"%module) + # ret = cmd.run() + command_list = launcher[:] # force copy to preserve original + command_list.extend([module, "--xml"]) + final_command = " ".join(command_list) + xmlReturnValue = subprocess.Popen( + final_command, stdout=subprocess.PIPE, shell=True + ).communicate()[0] + if mipav_hacks: + # workaround for a jist bug https://www.nitrc.org/tracker/index.php?func=detail&aid=7234&group_id=228&atid=942 + new_xml = "" + replace_closing_tag = False + for line in xmlReturnValue.splitlines(): + if line.strip() == "": + new_xml += "\n" + replace_closing_tag = True + elif replace_closing_tag and line.strip() == "": + new_xml += "\n" + replace_closing_tag = False + else: + new_xml += f"{line}\n" + + xmlReturnValue = new_xml + + # workaround for a JIST bug https://www.nitrc.org/tracker/index.php?func=detail&aid=7233&group_id=228&atid=942 + if xmlReturnValue.strip().endswith("XML"): + xmlReturnValue = xmlReturnValue.strip()[:-3] + if xmlReturnValue.strip().startswith("Error: Unable to set default atlas"): + xmlReturnValue = xmlReturnValue.strip()[ + len("Error: Unable to set default atlas") : + ] + try: + dom = xml.dom.minidom.parseString(xmlReturnValue.strip()) + except Exception as e: + print(xmlReturnValue.strip()) + raise e + return dom + + +# if ret.runtime.returncode == 0: +# return xml.dom.minidom.parseString(ret.runtime.stdout) +# else: +# raise Exception(cmd.cmdline + " failed:\n%s"%ret.runtime.stderr) + + +def dom_from_xml(module, xml_dir): + try: + dom = xml.dom.minidom.parse(os.path.join(xml_dir, f"{module}.xml")) + except Exception as e: + print(os.path.join(xml_dir, f"{module}.xml")) + raise e + return dom + + +def parse_params(params): + list = [] + for key, value in params.items(): + if isinstance(value, (str, bytes)): + list.append( + '"{key}": "{value}"'.format(key=key, value=value.replace('"', "'")) + ) + else: + list.append(f'"{key}": "{value}"') + + return ", ".join(list) + + +def parse_values(values): + values = [f"{value}" for value in values] + if len(values) > 0: + return ", ".join(values) + ", " + else: + return "" + + +def gen_filename_from_param(param, base): + fileExtensions = param.getAttribute("fileExtensions") + if fileExtensions: + # It is possible that multiple file extensions can be specified in a + # comma separated list, This will extract just the first extension + firstFileExtension = fileExtensions.split(",")[0] + ext = firstFileExtension + else: + ext = { + "image": ".nii", + "transform": ".mat", + "file": "", + "directory": "", + "geometry": ".vtk", + }[param.nodeName] + return base + ext + + +if __name__ == "__main__": + # NOTE: For now either the launcher needs to be found on the default path, or + # every tool in the modules list must be found on the default path + # AND calling the module with --xml must be supported and compliant. + modules_list = [ + # "ACPCTransform", + # "AddScalarVolumes", + "BRAINSABC", + # "BRAINSAlignMSP", + # "BRAINSCleanMask", + # "BRAINSClipInferior", + "BRAINSConstellationDetector", + # "BRAINSConstellationDetectorGUI", + # "BRAINSConstellationLandmarksTransform", + # "BRAINSConstellationModeler", + "BRAINSCreateLabelMapFromProbabilityMaps", + # "BRAINSDWICleanup", + # "BRAINSEyeDetector", + # "BRAINSFit", + # "BRAINSInitializedControlPoints", + # "BRAINSLabelStats", + "BRAINSLandmarkInitializer", + # "BRAINSLinearModelerEPCA", + # "BRAINSLmkTransform", + # "BRAINSMultiModeSegment", + # "BRAINSMultiSTAPLE", + # "BRAINSMush", + # "BRAINSPosteriorToContinuousClass", + "BRAINSROIAuto", + "BRAINSResample", + # "BRAINSResize", + # "BRAINSSnapShotWriter", + # "BRAINSStripRotation", + # "BRAINSTalairach", + # "BRAINSTalairachMask", + # "BRAINSTransformConvert", + # "BRAINSTransformFromFiducials", + # "BRAINSTrimForegroundInDirection", + # "BinaryMaskEditorBasedOnLandmarks", + # "CLIROITest", + # "CastScalarVolume", + # "CheckerBoardFilter", + # "ComputeReflectiveCorrelationMetric", + # "CreateDICOMSeries", + # "CurvatureAnisotropicDiffusion", + # "DWICompare", + # # "DWIConvert", + # "DWISimpleCompare", + # "DiffusionTensorTest", + # "ESLR", + # # "ExecutionModelTour", + # "ExpertAutomatedRegistration", + # # "ExtractSkeleton", + # "FiducialRegistration", + # "FindCenterOfBrain", + # "GaussianBlurImageFilter", + # "GenerateAverageLmkFile", + # "GenerateEdgeMapImage", + # "GenerateLabelMapFromProbabilityMap", + # "GeneratePurePlugMask", + # "GradientAnisotropicDiffusion", + # "GrayscaleFillHoleImageFilter", + # "GrayscaleGrindPeakImageFilter", + # "GrayscaleModelMaker", + # "HistogramMatching", + # "ImageLabelCombine", + # "LabelMapSmoothing", + # "LandmarksCompare", + # "MaskScalarVolume", + # "MedianImageFilter", + # "MergeModels", + # "ModelMaker", + # "ModelToLabelMap", + # "MultiplyScalarVolumes", + # "N4ITKBiasFieldCorrection", + # "OrientScalarVolume", + # "PETStandardUptakeValueComputation", + # "PerformMetricTest", + # "ProbeVolumeWithModel", + # "ResampleDTIVolume", + # "ResampleScalarVectorDWIVolume", + # "ResampleScalarVolume", + # "RobustStatisticsSegmenter", + # "SimpleRegionGrowingSegmentation", + # "SubtractScalarVolumes", + # "TestGridTransformRegistration", + # "ThresholdScalarVolume", + # "VotingBinaryHoleFillingImageFilter", + # "compareTractInclusion", + # "extractNrrdVectorIndex", + # "fcsv_to_hdf5", + # "gtractAnisotropyMap", + # "gtractAverageBvalues", + # "gtractClipAnisotropy", + # "gtractCoRegAnatomy", + # "gtractCoRegAnatomyBspline", + # "gtractCoRegAnatomyRigid", + # "gtractConcatDwi", + # "gtractCopyImageOrientation", + # "gtractCoregBvalues", + # "gtractCostFastMarching", + # "gtractCreateGuideFiber", + # "gtractFastMarchingTracking", + # "gtractFiberTracking", + # "gtractFreeTracking", + # "gtractGraphSearchTracking", + # "gtractGuidedTracking", + # "gtractImageConformity", + # "gtractInvertBSplineTransform", + # "gtractInvertDisplacementField", + # "gtractInvertRigidTransform", + # "gtractResampleAnisotropy", + # "gtractResampleB0", + # "gtractResampleCodeImage", + # "gtractResampleDWIInPlace", + # "gtractResampleFibers", + # "gtractStreamlineTracking", + # "gtractTensor", + # "gtractTransformToDisplacementField", + # "insertMidACPCpoint", + # "landmarksConstellationAligner", + # "landmarksConstellationWeights", + # "simpleEM", + ] + + launcher = [] + + arguments = sys.argv[1:] + num_arguments = len(arguments) + + if num_arguments <= 2: + output_dir, xml_dir = arguments + [None] * (2 - num_arguments) + else: + raise ValueError( + f"expected at most 2 arguments [output directory, xml directory], received {num_arguments} arguments: {arguments}" + ) + + # SlicerExecutionModel compliant tools that are usually statically built, and don't need the Slicer3 --launcher + generate_all_classes( + modules_list=modules_list, + launcher=launcher, + xml_dir=xml_dir, + output_dir=output_dir, + ) + # Tools compliant with SlicerExecutionModel called from the Slicer environment (for shared lib compatibility) + # launcher = ['/home/raid3/gorgolewski/software/slicer/Slicer', '--launch'] + # generate_all_classes(modules_list=modules_list, launcher=launcher) + # generate_all_classes(modules_list=['BRAINSABC'], launcher=[] ) diff --git a/tools/xmls/ACPCTransform.xml b/tools/xmls/ACPCTransform.xml new file mode 100644 index 0000000..78af9d9 --- /dev/null +++ b/tools/xmls/ACPCTransform.xml @@ -0,0 +1,37 @@ + + + Registration.Specialized + ACPC Transform + 1 + Calculate a transformation that aligns brain images to standard orientation based on anatomical landmarks.

The ACPC line extends between two points, one at the anterior commissure and one at the posterior commissure. The resulting transform will bring the line connecting the two points horizontal to the AP axis.

The midline is a series of points (at least 3) defining the division between the hemispheres of the brain (the mid sagittal plane). The resulting transform will result in the output volume having the mid sagittal plane lined up with the AS plane.

Use the Filtering module Resample Scalar/Vector/DWI Volume to apply the transformation to a volume.

]]>
+ 1.0 + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ACPCTransform + slicer3 + Nicole Aucoin (SPL, BWH), Ron Kikinis (SPL, BWH) + + + + + + ACPC + + --acpc + + 0,0,0 + + + Midline + + --midline + + 0,0,0 + + + OutputTransform + --outputTransform + + + output + + +
diff --git a/tools/xmls/AddScalarVolumes.xml b/tools/xmls/AddScalarVolumes.xml new file mode 100644 index 0000000..63f08fb --- /dev/null +++ b/tools/xmls/AddScalarVolumes.xml @@ -0,0 +1,51 @@ + + + Filtering.Arithmetic + Add Scalar Volumes + + 0.1.0.$Revision$(alpha) + https://www.slicer.org/wiki/Documentation/Nightly/Modules/Add + + Bill Lorensen (GE) + + + + + + inputVolume1 + + input + 0 + + + + inputVolume2 + + input + 1 + + + + outputVolume + + output + 2 + + + + + + + + order + + 1 + 0 + 1 + 2 + 3 + order + + + + diff --git a/tools/xmls/BRAINSABC.xml b/tools/xmls/BRAINSABC.xml new file mode 100644 index 0000000..94d968c --- /dev/null +++ b/tools/xmls/BRAINSABC.xml @@ -0,0 +1,331 @@ + + + + Segmentation.Specialized + Intra-subject registration, bias Correction, and tissue classification (BRAINS) + Atlas-based tissue segmentation method. This is an algorithmic extension of work done by XXXX at UNC and Utah XXXX need more description here. + + + + + + Input parameters + + + input_Volumes + + inputVolumes + i + input + The list of input image files to be segmented. + + + atlasDefinition + + atlasDefinition + input + + Contains all parameters for Atlas + + + restoreState + restoreState + + The initial state for the registration process + input + + + saveState + saveState + + (optional) Filename to which save the final state of the registration + output + + + + + input_VolumeTypes + + The list of input image types corresponding to the inputVolumes. + inputVolumeTypes + + + + outputDir + + + outputDir + output + Ouput directory + + + + + atlasToSubjectTransformType + + atlasToSubjectTransformType + What type of linear transform type do you want to use to register the atlas to the reference subject image. + Identity + Rigid + Affine + BSpline + SyN + SyN + + + atlasToSubjectTransform + + The transform from atlas to the subject + atlasToSubjectTransform + output + + + atlasToSubjectInitialTransform + + The initial transform from atlas to the subject + atlasToSubjectInitialTransform + output + + + subjectIntermodeTransformType + + subjectIntermodeTransformType + What type of transform type do you want to run intra subject registeration. Only Identity and Rigid are allowed. + Identity + Rigid + Rigid + + + + + Output filename specifications + + output_Volumes + + outputVolumes + output + %s_corrected_%d.nii.gz + Corrected Output Images: should specify the same number of images as inputVolume, if only one element is given, then it is used as a file pattern where %s is replaced by the imageVolumeType, and %d by the index list location. + + + + outputLabels + + outputLabels + output + + Output Label Image + + + + outputDirtyLabels + + outputDirtyLabels + output + + Output Dirty Label Image + + + + posteriorTemplate + + posteriorTemplate + POST_%s.nii.gz + filename template for Posterior output files + + + + + Advanced parameters for the creation of the segmentation file + + + outputFormat + outputFormat + Output format + NIFTI + Meta + Nrrd + NIFTI + + + + resamplerInterpolatorType + interpolationMode + Type of interpolation to be used when applying transform to moving volume. Options are Linear, NearestNeighbor, BSpline, WindowedSinc, or ResampleInPlace. The ResampleInPlace option will create an image with the same discrete voxel values and will adjust the origin and direction of the physical space interpretation. + BSpline + NearestNeighbor + WindowedSinc + Linear + ResampleInPlace + BSpline + Hamming + Cosine + Welch + Lanczos + Blackman + + + maxIterations + Filter iterations + + maxIterations + 40 + + 1 + 100 + 1 + + + + + + medianFilterSize + medianFilterSize + + The radius for the optional MedianImageFilter preprocessing in all 3 directions. + 0,0,0 + + + filterIteration + Filter iterations + + filterIteration + 5 + + 0 + 50 + 1 + + + + filterTimeStep + Filter time step should be less than (PixelSpacing/(1^(DIM+1)), value is set to negative, then allow automatic setting of this value. + + filterTimeStep + -1.0 + + 0 + 0.5 + 0.01 + + + + filterMethod + + filterMethod + Filter method for preprocessing of registration + None + CurvatureFlow + GradientAnisotropicDiffusion + Median + None + + + + maxBiasDegree + Maximum bias degree + + maxBiasDegree + 4 + + 0 + 20 + 1 + + + + + useKNN + Use the KNN stage of estimating posteriors. + + useKNN + false + + + + purePlugsThreshold + purePlugsThreshold + + input + If this threshold value is greater than zero, only pure samples are used to compute the distributions in EM classification, and only pure samples are used for KNN training. The default value is set to 0, that means not using pure plugs. However, a value between 0 and 1 should be set as the threshold if you want to activate using pure plugs option. Empirically a value of 0.1 is suggested. + 0.0 + + + + numberOfSubSamplesInEachPlugArea + numberOfSubSamplesInEachPlugArea + + input + Number of continous index samples taken at each direction of lattice space for each plug volume. + 0,0,0 + + + + atlasWarpingOff + false + + atlasWarpingOff + Deformable registration of atlas to subject + + + gridSize + Grid size for atlas warping with BSplines + + gridSize + 5,5,5 + + + + + + + + defaultSuffix + + s + defaultSuffix + BRAINSABC + + + + + + + Options + + + implicitOutputs + + Outputs to be made available to NiPype. Needed because not all BRAINSABC outputs have command line arguments. + implicitOutputs + output + + + + debuglevel + + Display debug messages, and produce debug intermediate results. 0=OFF, 1=Minimal, 10=Maximum debugging. + debuglevel + 0 + + + + writeLess + + Does not write posteriors and filtered, bias corrected images + writeLess + false + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + + diff --git a/tools/xmls/BRAINSAlignMSP.xml b/tools/xmls/BRAINSAlignMSP.xml new file mode 100644 index 0000000..c43acc7 --- /dev/null +++ b/tools/xmls/BRAINSAlignMSP.xml @@ -0,0 +1,138 @@ + + + Utilities.BRAINS + Align Mid Saggital Brain (BRAINS) + Resample an image into ACPC alignement ACPCDetect + + + inputVolume + + i + inputVolume + + + The Image to be resampled + + input + + + resampleMSP + + o + OutputresampleMSP + + + The image to be output. + + output + + + verbose + + v + verbose + false + + Show more verbose output + + + + resultsDir + + r + resultsDir + ./ + + The directory for the results to be written. + + output + + + writedebuggingImagesLevel + + writedebuggingImagesLevel + w + + This flag controls if debugging images are produced. By default value of 0 is no images. Anything greater than zero will be increasing level of debugging images. + + 0 + + + mspQualityLevel + + mspQualityLevel + q + + Flag cotrols how agressive the MSP is estimated. 0=quick estimate (9 seconds), 1=normal estimate (11 seconds), 2=great estimate (22 seconds), 3=best estimate (58 seconds). + + 2 + + 0 + 3 + 1 + + + + rescaleIntensities + + rescaleIntensities + n + + Flag to turn on rescaling image intensities on input. + + 0 + + + trimRescaledIntensities + + trimRescaledIntensities + x + + Turn on clipping the rescaled image one-tailed on input. Units of standard deviations above the mean. Very large values are very permissive. Non-positive value turns clipping off. Defaults to removing 0.00001 of a normal tail above the mean. + + 4.4172 + + + rescaleIntensitiesOutputRange + + rescaleIntensitiesOutputRange + y + + This pair of integers gives the lower and upper bounds on the signal portion of the output image. Out-of-field voxels are taken from BackgroundFillValue. + + 40,4000 + + + backgroundFillValueString + BackgroundFillValue + z + Fill the background of image with specified short int value. Enter number or use BIGNEG for a large negative number. + + 0 + + + interpolationMode + interpolationMode + + Type of interpolation to be used when applying transform to moving volume. Options are Linear, ResampleInPlace, NearestNeighbor, BSpline, or WindowedSinc + Linear + NearestNeighbor + Linear + ResampleInPlace + BSpline + WindowedSinc + Hamming + Cosine + Welch + Lanczos + Blackman + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/BRAINSCleanMask.xml b/tools/xmls/BRAINSCleanMask.xml new file mode 100644 index 0000000..d66a995 --- /dev/null +++ b/tools/xmls/BRAINSCleanMask.xml @@ -0,0 +1,37 @@ + + + + Segmentation.Specialized + Mask Hole Filling (BRAINS) + Cleans up a mask image by filling any holes + + + + inputVolume + + --inputVolume + i + input + The mask image to be cleaned up. + + + outputVolume + + --outputVolume + o + output + The cleaned mask image. + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + + diff --git a/tools/xmls/BRAINSClipInferior.xml b/tools/xmls/BRAINSClipInferior.xml new file mode 100644 index 0000000..ee30160 --- /dev/null +++ b/tools/xmls/BRAINSClipInferior.xml @@ -0,0 +1,54 @@ + + + Utilities.BRAINS + Clip Inferior of Center of Brain (BRAINS) + This program will read the inputVolume as a short int image, write the BackgroundFillValue everywhere inferior to the lower bound, and write the resulting clipped short int image in the outputVolume. + + + 5.2.0 + + + inputVolume + i + inputVolume + + Input image to make a clipped short int copy from. + input + + + + outputVolume + o + outputVolume + + Output image, a short int copy of the upper portion of the input image, filled with BackgroundFillValue. + output + + + + acLowerBound + + acLowerBound + b + + When the input image to the output image, replace the image with the BackgroundFillValue everywhere below the plane This Far in physical units (millimeters) below (inferior to) the AC point (assumed to be the voxel field middle.) The oversize default was chosen to have no effect. Based on visualizing a thousand masks in the IPIG study, we recommend a limit no smaller than 80.0 mm. + + 1000.0 + + + backgroundFillValueString + BackgroundFillValue + z + Fill the background of image with specified short int value. Enter number or use BIGNEG for a large negative number. + + 0 + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/BRAINSConstellationDetector.xml b/tools/xmls/BRAINSConstellationDetector.xml new file mode 100644 index 0000000..6379991 --- /dev/null +++ b/tools/xmls/BRAINSConstellationDetector.xml @@ -0,0 +1,402 @@ + + + Segmentation.Specialized + Brain Landmark Constellation Detector (BRAINS) + + This program will find the mid-sagittal plane, a constellation of landmarks in a volume, and create an AC/PC aligned data set with the AC point at the center of the voxel lattice (labeled at the origin of the image physical space.) Part of this work is an extention of the algorithms originally described by Dr. Babak A. Ardekani, Alvin H. Bachman, Model-based automatic detection of the anterior and posterior commissures on MRI scans, NeuroImage, Volume 46, Issue 3, 1 July 2009, Pages 677-682, ISSN 1053-8119, DOI: 10.1016/j.neuroimage.2009.02.030. (http://www.sciencedirect.com/science/article/B6WNP-4VRP25C-4/2/8207b962a38aa83c822c6379bc43fe4c) + + Hans J. Johnson (hans-johnson -at- uiowa.edu), Ali Ghayoor + + 5.2.0 + http://www.nitrc.org/projects/brainscdetector/ + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + + + + houghEyeDetectorMode + + houghEyeDetectorMode + + This flag controls the mode of Hough eye detector. By default, value of 1 is for T1W images, while the value of 0 is for T2W and PD images. + + 1 + + + inputTemplateModel + + + inputTemplateModel + User-specified template model. + + input + + + llsModel + + + LLSModel + Linear least squares model filename in HD5 format + input + + + inputVolume + i + inputVolume + + Input image in which to find ACPC points + input + + + + outputVolume + o + outputVolume + + ACPC-aligned output image with the same voxels as the input image, but updated origin, and direction cosign so that the AC point would fall at the physical location (0.0,0.0,0.0), and the mid-sagital plane is the plane where physical L/R coordinate is 0.0. No interpolation method is involved to create the "outputVolume", and this output image is created using "resample in place" filter. + output + + + + outputResampledVolume + outputResampledVolume + + ACPC-aligned output image in a resampled uniform isotropic space. Currently this is a 1mm, 256^3 image with identity direction cosign. Choose desired interpolation mode to generate the outputResampledVolume. + output + + + + outputTransform + + + outputTransform + The filename for the original space to ACPC alignment to be written (in .h5 format). + + output + + + outputLandmarksInInputSpace + + outputLandmarksInInputSpace + + + The filename for the new subject-specific landmark definition file in the same format produced by Slicer3 (.fcsv) with the landmarks in the original image space (the detected RP, AC, PC, and VN4) in it to be written. + + output + + + outputLandmarksInACPCAlignedSpace + + outputLandmarksInACPCAlignedSpace + + + The filename for the new subject-specific landmark definition file in the same format produced by Slicer3 (.fcsv) with the landmarks in the output image space (the detected RP, AC, PC, and VN4) in it to be written. + + output + + + outputMRML + + outputMRML + + + The filename for the new subject-specific scene definition file in the same format produced by Slicer3 (in .mrml format). Only the components that were specified by the user on command line would be generated. Compatible components include inputVolume, outputVolume, outputLandmarksInInputSpace, outputLandmarksInACPCAlignedSpace, and outputTransform. + + output + + + outputVerificationScript + + outputVerificationScript + + + The filename for the Slicer3 script that verifies the aligned landmarks against the aligned image file. This will happen only in conjunction with saveOutputLandmarks and an outputVolume. + + output + + + mspQualityLevel + + mspQualityLevel + + Flag cotrols how agressive the MSP is estimated. 0=quick estimate (9 seconds), 1=normal estimate (11 seconds), 2=great estimate (22 seconds), 3=best estimate (58 seconds), NOTE: -1= Prealigned so no estimate!. + + 2 + + -1 + 3 + 1 + + + + otsuPercentileThreshold + + otsuPercentileThreshold + + This is a parameter to FindLargestForegroundFilledMask, which is employed when acLowerBound is set and an outputUntransformedClippedVolume is requested. + + 0.01 + + + acLowerBound + + acLowerBound + + When generating a resampled output image, replace the image with the BackgroundFillValue everywhere below the plane This Far in physical units (millimeters) below (inferior to) the AC point (as found by the model.) The oversize default was chosen to have no effect. Based on visualizing a thousand masks in the IPIG study, we recommend a limit no smaller than 80.0 mm. + + 1000.0 + + + cutOutHeadInOutputVolume + + cutOutHeadInOutputVolume + + Flag to cut out just the head tissue when producing an (un)transformed clipped volume. + + false + + + outputUntransformedClippedVolume + outputUntransformedClippedVolume + + Output image in which to store neck-clipped input image, with the use of --acLowerBound and maybe --cutOutHeadInUntransformedVolume. + output + + + + rescaleIntensities + + rescaleIntensities + + Flag to turn on rescaling image intensities on input. + + false + + + trimRescaledIntensities + + trimRescaledIntensities + + Turn on clipping the rescaled image one-tailed on input. Units of standard deviations above the mean. Very large values are very permissive. Non-positive value turns clipping off. Defaults to removing 0.00001 of a normal tail above the mean. + + 4.4172 + + + rescaleIntensitiesOutputRange + + rescaleIntensitiesOutputRange + + This pair of integers gives the lower and upper bounds on the signal portion of the output image. Out-of-field voxels are taken from BackgroundFillValue. + + 40,4000 + + + backgroundFillValueString + BackgroundFillValue + Fill the background of image with specified short int value. Enter number or use BIGNEG for a large negative number. + + 0 + + + interpolationMode + interpolationMode + + Type of interpolation to be used when applying transform to moving volume to create OutputResampledVolume. Options are Linear, NearestNeighbor, BSpline, or WindowedSinc + Linear + NearestNeighbor + Linear + BSpline + WindowedSinc + Hamming + Cosine + Welch + Lanczos + Blackman + + + + + Manually force the location of the points in original image space. + + forceACPoint + + forceACPoint + + Manually specify the AC point from the original image in RAS coordinates (i.e. Slicer coordinates). + + + + + forcePCPoint + + forcePCPoint + + Manually specify the PC point from the original image in RAS coordinates (i.e. Slicer coordinates). + + + + + forceVN4Point + + forceVN4Point + + Manually specify the VN4 point from the original image in RAS coordinates (i.e. Slicer coordinates). + + + + + forceRPPoint + + forceRPPoint + + Manually specify the RP point from the original image in RAS coordinates (i.e. Slicer coordinates). + + + + + inputLandmarksEMSP + + inputLandmarksEMSP + + + The filename for the new subject-specific landmark definition file in the same format produced by Slicer3 (in .fcsv) with the landmarks in the estimated MSP aligned space to be loaded. The detector will only process landmarks not enlisted on the file. + + input + + + forceHoughEyeDetectorReportFailure + + forceHoughEyeDetectorReportFailure + + Flag indicates whether the Hough eye detector should report failure + + false + + + + + Override the default values from the model files. + + radiusMPJ + rmpj + + Search radius for MPJ in unit of mm + + -1 + + + radiusAC + rac + + Search radius for AC in unit of mm + + -1 + + + radiusPC + rpc + + Search radius for PC in unit of mm + + -1 + + + radiusVN4 + rVN4 + + Search radius for VN4 in unit of mm + + -1 + + + + + Options to control the amount of debugging information that is presented. + + debug + + debug + false + + Show internal debugging information. + + + + verbose + + v + verbose + false + + Show more verbose output + + + + writeBranded2DImage + + writeBranded2DImage + + + The filename for the 2D .png branded midline debugging image. This will happen only in conjunction with requesting an outputVolume. + + output + + + resultsDir + + r + resultsDir + ./ + + The directory for the debuging images to be written. + + output + + + writedebuggingImagesLevel + + writedebuggingImagesLevel + w + + This flag controls if debugging images are produced. By default value of 0 is no images. Anything greater than zero will be increasing level of debugging images. + + 0 + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + atlasVolume + atlasVolume + + Atlas volume image to be used for BRAINSFit registration to redefine the final ACPC-aligned transform by registering original input image to the Atlas image. The initial registration transform is created by passing BCD_ACPC_Landmarks and atlasLandmarks to BRAINSLandmarkInitializer. This flag should be used with atlasLandmarks and atlasLandmarkWeights flags. Note that using this flag causes that AC point in the final acpcLandmark file not be exactly placed at 0,0,0 coordinates. + + input + + + + + atlasLandmarks + + + atlasLandmarks + Atlas landmarks to be used for BRAINSFit registration initialization + + input + + + + atlasLandmarkWeights + + + atlasLandmarkWeights + Weights associated with atlas landmarks to be used for BRAINSFit registration initialization + + input + + + + diff --git a/tools/xmls/BRAINSConstellationDetectorGUI.xml b/tools/xmls/BRAINSConstellationDetectorGUI.xml new file mode 100644 index 0000000..4155d52 --- /dev/null +++ b/tools/xmls/BRAINSConstellationDetectorGUI.xml @@ -0,0 +1,44 @@ + + + Utilities.BRAINS + ConstellationDetectorGUI (BRAINS) + + This program provides the user with a GUI tool to view/manipulate landmarks for an input volume. + + + 5.2.0 + http://www.nitrc.org/projects/brainscdetector/ + + + inputVolume + i + inputVolume + + The filename of the input NIfTI volume to view/manipulate + input + + + + inputLandmarks + + l + inputLandmarks + + + The filename for the new subject-specific landmark definition file in the same format produced by Slicer3 (in a .fcsv format) with the landmarks in the original image space in it to be read in. + + input + + + outputLandmarks + + o + outputLandmarks + + + The filename for the new subject-specific landmark definition file in the same format produced by Slicer3 (in a .fcsv format) with the landmarks in the original image space in it to be written. + + input + + + diff --git a/tools/xmls/BRAINSConstellationLandmarksTransform.xml b/tools/xmls/BRAINSConstellationLandmarksTransform.xml new file mode 100644 index 0000000..7d15d60 --- /dev/null +++ b/tools/xmls/BRAINSConstellationLandmarksTransform.xml @@ -0,0 +1,48 @@ + + + Utilities.BRAINS + Landmarks Transformation + + This program converts the original landmark file to the target landmark file using the input transform. + + 5.2.0 + + + Ali Ghayoor + + + + + + Input/output parameters + + + inputLandmarksFile + i + inputLandmarksFile + + input + Input landmarks file (.fcsv) + + + + inputTransformFile + t + inputTransformFile + + input + input composite transform file (.h5,.hdf5) + + + + outputLandmarksFile + o + outputLandmarksFile + + output + Output landmarks file (.fcsv) + + + + + diff --git a/tools/xmls/BRAINSConstellationModeler.xml b/tools/xmls/BRAINSConstellationModeler.xml new file mode 100644 index 0000000..e5b725d --- /dev/null +++ b/tools/xmls/BRAINSConstellationModeler.xml @@ -0,0 +1,139 @@ + + + Utilities.BRAINS + Generate Landmarks Model (BRAINS) + Train up a model for BRAINSConstellationDetector + + + verbose + + v + verbose + false + + Show more verbose output + + + + inputTrainingList + i + inputTrainingList + + + Setup file, giving all parameters for training up a template model for each landmark. + + input + + + outputModel + m + outputModel + default.mdl + + The full filename of the output model file. + + output + + + saveOptimizedLandmarks + + l + saveOptimizedLandmarks + false + + Flag to make a new subject-specific landmark definition file in the same format produced by Slicer3 with the optimized landmark (the detected RP, AC, and PC) in it. Useful to tighten the variances in the ConstellationModeler. + + + + optimizedLandmarksFilenameExtender + j + optimizedLandmarksFilenameExtender + _opt.fcsv + + If the trainingList is (indexFullPathName) and contains landmark data filenames [path]/[filename].fcsv , make the optimized landmarks filenames out of [path]/[filename](thisExtender) and the optimized version of the input trainingList out of (indexFullPathName)(thisExtender) , when you rewrite all the landmarks according to the saveOptimizedLandmarks flag. + + output + + + resultsDir + + r + resultsDir + ./ + + The directory for the results to be written. + + output + + + mspQualityLevel + + mspQualityLevel + q + + Flag cotrols how agressive the MSP is estimated. 0=quick estimate (9 seconds), 1=normal estimate (11 seconds), 2=great estimate (22 seconds), 3=best estimate (58 seconds). + + 2 + + 0 + 3 + 1 + + + + rescaleIntensities + + rescaleIntensities + n + + Flag to turn on rescaling image intensities on input. + + 0 + + + trimRescaledIntensities + + trimRescaledIntensities + x + + Turn on clipping the rescaled image one-tailed on input. Units of standard deviations above the mean. Very large values are very permissive. Non-positive value turns clipping off. Defaults to removing 0.00001 of a normal tail above the mean. + + 4.4172 + + + rescaleIntensitiesOutputRange + + rescaleIntensitiesOutputRange + y + + This pair of integers gives the lower and upper bounds on the signal portion of the output image. Out-of-field voxels are taken from BackgroundFillValue. + + 40,4000 + + + backgroundFillValueString + BackgroundFillValue + z + Fill the background of image with specified short int value. Enter number or use BIGNEG for a large negative number. + + 0 + + + writedebuggingImagesLevel + + writedebuggingImagesLevel + w + + This flag controls if debugging images are produced. By default value of 0 is no images. Anything greater than zero will be increasing level of debugging images. + + 0 + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/BRAINSCreateLabelMapFromProbabilityMaps.xml b/tools/xmls/BRAINSCreateLabelMapFromProbabilityMaps.xml new file mode 100644 index 0000000..efc58ab --- /dev/null +++ b/tools/xmls/BRAINSCreateLabelMapFromProbabilityMaps.xml @@ -0,0 +1,76 @@ + + + + Segmentation.Specialized + Create Label Map From Probability Maps (BRAINS) + Given A list of Probability Maps, generate a LabelMap. + + + + Input parameters + + + inputProbabilityVolume + + inputProbabilityVolume + i + input + The list of proobabilityimages. + + + + priorLabelCodes + + priorLabelCodes + A list of PriorLabelCode values used for coding the output label images + + + + + foregroundPriors + + foregroundPriors + A list: For each Prior Label, 1 if foreground, 0 if background + + + + + nonAirRegionMask + + nonAirRegionMask + input + a mask representing the "NonAirRegion" -- Just force pixels in this region to zero + + + + inclusionThreshold + + inclusionThreshold + tolerance for inclusion + 0.0 + + + + + + + Output filename specifications + + + dirtyLabelVolume + + dirtyLabelVolume + output + the labels prior to cleaning + + + + cleanLabelVolume + + cleanLabelVolume + output + the foreground labels volume + + + + diff --git a/tools/xmls/BRAINSDWICleanup.xml b/tools/xmls/BRAINSDWICleanup.xml new file mode 100644 index 0000000..6427fe7 --- /dev/null +++ b/tools/xmls/BRAINSDWICleanup.xml @@ -0,0 +1,44 @@ + + + Diffusion.Utilities + BRAINSDWICleanup + + Remove bad gradients/volumes from DWI NRRD file. + + 5.2.0 + + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + This tool was developed by Kent Williams. + + + + + + + + inputVolume + i + inputVolume + Required: input image is a 4D NRRD image. + + input + + + outputVolume + o + outputVolume + given a list of + + output + + + + badGradients + badGradients + b + + + + + + diff --git a/tools/xmls/BRAINSEyeDetector.xml b/tools/xmls/BRAINSEyeDetector.xml new file mode 100644 index 0000000..b843e2e --- /dev/null +++ b/tools/xmls/BRAINSEyeDetector.xml @@ -0,0 +1,37 @@ + + + Utilities.BRAINS + Eye Detector (BRAINS) + + + + 5.2.0 + http://www.nitrc.org/projects/brainscdetector/ + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + inputVolume + inputVolume + The input volume + input + + + outputVolume + outputVolume + The output volume + output + + + debugDir + debugDir + A place for debug information + /tmp + + + diff --git a/tools/xmls/BRAINSFit.xml b/tools/xmls/BRAINSFit.xml new file mode 100644 index 0000000..02e20df --- /dev/null +++ b/tools/xmls/BRAINSFit.xml @@ -0,0 +1,558 @@ + + + Registration + General Registration (BRAINS) + Register a three-dimensional volume to a reference volume (Mattes Mutual Information by default). Full documentation avalable here: http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/BRAINSFit. Method described in BRAINSFit: Mutual Information Registrations of Whole-Brain 3D Images, Using the Insight Toolkit, Johnson H.J., Harris G., Williams K., The Insight Journal, 2007. http://hdl.handle.net/1926/1291 + http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/BRAINSFit + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Hans J. Johnson (hans-johnson -at- uiowa.edu, http://www.psychiatry.uiowa.edu), Ali Ghayoor + + 5.2.0 + + + + + fixedVolume + fixedVolume + + Input fixed image (the moving image will be transformed into this image space). + input + + + + movingVolume + movingVolume + + Input moving image (this image will be transformed into the fixed image space). + + input + + + + + + + samplingPercentage + samplingPercentage + + Fraction of voxels of the fixed image that will be used for registration. The number has to be larger than zero and less or equal to one. Higher values increase the computation time but may give more accurate results. You can also limit the sampling focus with ROI masks and ROIAUTO mask generation. The default is 0.002 (use approximately 0.2% of voxels, resulting in 100000 samples in a 512x512x192 volume) to provide a very fast registration in most cases. Typical values range from 0.01 (1%) for low detail images to 0.2 (20%) for high detail images. + 0.002 + + + splineGridSize + splineGridSize + + Number of BSpline grid subdivisions along each axis of the fixed image, centered on the image space. Values must be 3 or higher for the BSpline to be correctly computed. + 14,10,12 + + + + + + + linearTransform + linearTransform + + (optional) Output estimated transform - in case the computed transform is not BSpline. NOTE: You must set at least one output object (transform and/or output volume). + output + + + + + bsplineTransform + bsplineTransform + + (optional) Output estimated transform - in case the computed transform is BSpline. NOTE: You must set at least one output object (transform and/or output volume). + output + + + + + outputVolume + outputVolume + + (optional) Output image: the moving image warped to the fixed image space. NOTE: You must set at least one output object (transform and/or output volume). + output + + + + + + + Options for initializing transform parameters. + + initialTransform + initialTransform + + Transform to be applied to the moving image to initialize the registration. This can only be used if Initialize Transform Mode is Off. + input + + + initializeTransformMode + initializeTransformMode + + Determine how to initialize the transform center. useMomentsAlign assumes that the center of mass of the images represent similar structures. useCenterOfHeadAlign attempts to use the top of head and shape of neck to drive a center of mass estimate. useGeometryAlign on assumes that the center of the voxel lattice of the images represent similar structures. Off assumes that the physical space of the images are close. This flag is mutually exclusive with the Initialization transform. + Off + Off + useMomentsAlign + useCenterOfHeadAlign + useGeometryAlign + useCenterOfROIAlign + + + + + + Each of the registration phases will be used to initialize the next phase + + useRigid + useRigid + + Perform a rigid registration as part of the sequential registration steps. This family of options overrides the use of transformType if any of them are set. + false + + + useScaleVersor3D + useScaleVersor3D + + Perform a ScaleVersor3D registration as part of the sequential registration steps. This family of options overrides the use of transformType if any of them are set. + false + + + useScaleSkewVersor3D + useScaleSkewVersor3D + + Perform a ScaleSkewVersor3D registration as part of the sequential registration steps. This family of options overrides the use of transformType if any of them are set. + false + + + useAffine + useAffine + + Perform an Affine registration as part of the sequential registration steps. This family of options overrides the use of transformType if any of them are set. + false + + + useBSpline + useBSpline + + Perform a BSpline registration as part of the sequential registration steps. This family of options overrides the use of transformType if any of them are set. + false + + + useSyN + useSyN + + Perform a SyN registration as part of the sequential registration steps. This family of options overrides the use of transformType if any of them are set. + false + + + useComposite + useComposite + + Perform a Composite registration as part of the sequential registration steps. This family of options overrides the use of transformType if any of them are set. + false + + + + + + + maskProcessingMode + maskProcessingMode + Specifies a mask to only consider a certain image region for the registration. If ROIAUTO is chosen, then the mask is computed using Otsu thresholding and hole filling. If ROI is chosen then the mask has to be specified as in input. + + NOMASK + NOMASK + ROIAUTO + ROI + + + fixedBinaryVolume + fixedBinaryVolume + + Fixed Image binary mask volume, required if Masking Option is ROI. Image areas where the mask volume has zero value are ignored during the registration. + input + + + movingBinaryVolume + movingBinaryVolume + + Moving Image binary mask volume, required if Masking Option is ROI. Image areas where the mask volume has zero value are ignored during the registration. + input + + + outputFixedVolumeROI + outputFixedVolumeROI + + ROI that is automatically computed from the fixed image. Only available if Masking Option is ROIAUTO. Image areas where the mask volume has zero value are ignored during the registration. + output + + + outputMovingVolumeROI + outputMovingVolumeROI + + ROI that is automatically computed from the moving image. Only available if Masking Option is ROIAUTO. Image areas where the mask volume has zero value are ignored during the registration. + output + + + useROIBSpline + useROIBSpline + + If enabled then the bounding box of the input ROIs defines the BSpline grid support region. Otherwise the BSpline grid support region is the whole fixed image. + false + + + histogramMatch + e + histogramMatch + Apply histogram matching operation for the input images to make them more similar. This is suitable for images of the same modality that may have different brightness or contrast, but the same overall intensity profile. Do NOT use if registering images from different modalities. + + false + + + medianFilterSize + medianFilterSize + + Apply median filtering to reduce noise in the input volumes. The 3 values specify the radius for the optional MedianImageFilter preprocessing in all 3 directions (in voxels). + 0,0,0 + + + removeIntensityOutliers + removeIntensityOutliers + + Remove very high and very low intensity voxels from the input volumes. The parameter specifies the half percentage to decide outliers of image intensities. The default value is zero, which means no outlier removal. If the value of 0.005 is given, the 0.005% of both tails will be thrown away, so 0.01% of intensities in total would be ignored in the statistic calculation. + 0.0 + + + + + + + fixedVolume2 + fixedVolume2 + + Input fixed image that will be used for multimodal registration. (the moving image will be transformed into this image space). + input + + + + movingVolume2 + movingVolume2 + + Input moving image that will be used for multimodal registration(this image will be transformed into the fixed image space). + + input + + + outputVolumePixelType + outputVolumePixelType + + Data type for representing a voxel of the Output Volume. + float + float + short + ushort + int + uint + uchar + + + backgroundFillValue + backgroundFillValue + + This value will be used for filling those areas of the output image that have no corresponding voxels in the input moving image. + 0.0 + + + scaleOutputValues + scaleOutputValues + + If true, and the voxel values do not fit within the minimum and maximum values of the desired outputVolumePixelType, then linearly scale the min/max output image voxel values to fit within the min/max range of the outputVolumePixelType. + false + + + interpolationMode + interpolationMode + + Type of interpolation to be used when applying transform to moving volume. Options are Linear, NearestNeighbor, BSpline, WindowedSinc, Hamming, Cosine, Welch, Lanczos, or ResampleInPlace. The ResampleInPlace option will create an image with the same discrete voxel values and will adjust the origin and direction of the physical space interpretation. + Linear + NearestNeighbor + Linear + ResampleInPlace + BSpline + WindowedSinc + Hamming + Cosine + Welch + Lanczos + Blackman + + + + + + + numberOfIterations + numberOfIterations + + The maximum number of iterations to try before stopping the optimization. When using a lower value (500-1000) then the registration is forced to terminate earlier but there is a higher risk of stopping before an optimal solution is reached. + 1500 + + + maximumStepLength + maximumStepLength + + Starting step length of the optimizer. In general, higher values allow for recovering larger initial misalignments but there is an increased chance that the registration will not converge. + 0.05 + + + minimumStepLength + minimumStepLength + + Each step in the optimization takes steps at least this big. When none are possible, registration is complete. Smaller values allows the optimizer to make smaller adjustments, but the registration time may increase. + 0.001 + + + relaxationFactor + relaxationFactor + + Specifies how quickly the optimization step length is decreased during registration. The value must be larger than 0 and smaller than 1. Larger values result in slower step size decrease, which allow for recovering larger initial misalignments but it increases the registration time and the chance that the registration will not converge. + 0.5 + + + translationScale + translationScale + + How much to scale up changes in position (in mm) compared to unit rotational changes (in radians) -- decrease this to allow for more rotation in the search pattern. + 1000.0 + + + reproportionScale + reproportionScale + + ScaleVersor3D 'Scale' compensation factor. Increase this to allow for more rescaling in a ScaleVersor3D or ScaleSkewVersor3D search pattern. 1.0 works well with a translationScale of 1000.0 + 1.0 + + + skewScale + skewScale + + ScaleSkewVersor3D Skew compensation factor. Increase this to allow for more skew in a ScaleSkewVersor3D search pattern. 1.0 works well with a translationScale of 1000.0 + 1.0 + + + maxBSplineDisplacement + maxBSplineDisplacement + + Maximum allowed displacements in image physical coordinates (mm) for BSpline control grid along each axis. A value of 0.0 indicates that the problem should be unbounded. NOTE: This only constrains the BSpline portion, and does not limit the displacement from the associated bulk transform. This can lead to a substantial reduction in computation time in the BSpline optimizer. + + 0.0 + + + + + + + fixedVolumeTimeIndex + fixedVolumeTimeIndex + + The index in the time series for the 3D fixed image to fit. Only allowed if the fixed input volume is 4-dimensional. + 0 + + + movingVolumeTimeIndex + movingVolumeTimeIndex + + The index in the time series for the 3D moving image to fit. Only allowed if the moving input volume is 4-dimensional + 0 + + + + numberOfHistogramBins + numberOfHistogramBins + The number of histogram levels used for mutual information metric estimation. + + 50 + + + numberOfMatchPoints + numberOfMatchPoints + Number of histogram match points used for mutual information metric estimation. + + 10 + + + costMetric + costMetric + + The cost metric to be used during fitting. Defaults to MMI. Options are MMI (Mattes Mutual Information), MSE (Mean Square Error), NC (Normalized Correlation), MC (Match Cardinality for binary images) + MMI + MMI + MSE + NC + MIH + + + maskInferiorCutOffFromCenter + maskInferiorCutOffFromCenter + + If Initialize Transform Mode is set to useCenterOfHeadAlign or Masking Option is ROIAUTO then this value defines the how much is cut of from the inferior part of the image. The cut-off distance is specified in millimeters, relative to the image center. If the value is 1000 or larger then no cut-off performed. + 1000.0 + + + ROIAutoDilateSize + ROIAutoDilateSize + + This flag is only relevant when using ROIAUTO mode for initializing masks. It defines the final dilation size to capture a bit of background outside the tissue region. A setting of 10mm has been shown to help regularize a BSpline registration type so that there is some background constraints to match the edges of the head better. + 0.0 + + + ROIAutoClosingSize + ROIAutoClosingSize + + This flag is only relevant when using ROIAUTO mode for initializing masks. It defines the hole closing size in mm. It is rounded up to the nearest whole pixel size in each direction. The default is to use a closing size of 9mm. For mouse data this value may need to be reset to 0.9 or smaller. + 9.0 + + + numberOfSamples + numberOfSamples + + The number of voxels sampled for mutual information computation. Increase this for higher accuracy, at the cost of longer computation time.\nNOTE that it is suggested to use samplingPercentage instead of this option. However, if set to non-zero, numberOfSamples overwrites the samplingPercentage option. + 0 + + + strippedOutputTransform + strippedOutputTransform + + Rigid component of the estimated affine transform. Can be used to rigidly register the moving image to the fixed image. NOTE: This value is overridden if either bsplineTransform or linearTransform is set. + output + + + + + transformType + transformType + + Specifies a list of registration types to be used. The valid types are, Rigid, ScaleVersor3D, ScaleSkewVersor3D, Affine, BSpline and SyN. Specifying more than one in a comma separated list will initialize the next stage with the previous results. If registrationClass flag is used, it overrides this parameter setting. + + + + + outputTransform + outputTransform + + (optional) Filename to which save the (optional) estimated transform. NOTE: You must select either the outputTransform or the outputVolume option. + output + + + + + initializeRegistrationByCurrentGenericTransform + initializeRegistrationByCurrentGenericTransform + + If this flag is ON, the current generic composite transform, resulted from the linear registration stages, is set to initialize the follow nonlinear registration process. However, by the default behaviour, the moving image is first warped based on the existant transform before it is passed to the BSpline registration filter. It is done to speed up the BSpline registration by reducing the computations of composite transform Jacobian. + 0 + + + writeOutputTransformInFloat + writeOutputTransformInFloat + + By default, the output registration transforms (either the output composite transform or each transform component) are written to the disk in double precision. If this flag is ON, the output transforms will be written in single (float) precision. It is especially important if the output transform is a displacement field transform, or it is a composite transform that includes several displacement fields. + false + + + + + + + failureExitCode + failureExitCode + + If the fit fails, exit with this status code. (It can be used to force a successfult exit status of (0) if the registration fails due to reaching the maximum number of iterations. + -1 + + + writeTransformOnFailure + writeTransformOnFailure + + Flag to save the final transform even if the numberOfIterations are reached without convergence. (Intended for use when --failureExitCode 0 ) + 0 + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. (default is auto-detected) + -1 + + + debugLevel + + Display debug messages, and produce debug intermediate results. 0=OFF, 1=Minimal, 10=Maximum debugging. + debugLevel + 0 + + + costFunctionConvergenceFactor + costFunctionConvergenceFactor + From itkLBFGSBOptimizer.h: Set/Get the CostFunctionConvergenceFactor. Algorithm terminates when the reduction in cost function is less than (factor * epsmcj) where epsmch is the machine precision. Typical values for factor: 1e+12 for low accuracy; 1e+7 for moderate accuracy and 1e+1 for extremely high accuracy. 1e+9 seems to work well. + + 2e+13 + + + projectedGradientTolerance + projectedGradientTolerance + From itkLBFGSBOptimizer.h: Set/Get the ProjectedGradientTolerance. Algorithm terminates when the project gradient is below the tolerance. Default lbfgsb value is 1e-5, but 1e-4 seems to work well. + + 1e-5 + + + maximumNumberOfEvaluations + maximumNumberOfEvaluations + Maximum number of evaluations for line search in lbfgsb optimizer. + 900 + + + maximumNumberOfCorrections + maximumNumberOfCorrections + Maximum number of corrections in lbfgsb optimizer. + 25 + + + UseDebugImageViewer + G + gui + Display intermediate image volumes for debugging. NOTE: This is not part of the standard build sytem, and probably does nothing on your installation. + false + + + PromptAfterImageSend + p + promptUser + Prompt the user to hit enter each time an image is sent to the DebugImageViewer + false + + + metricSamplingStrategy + metricSamplingStrategy + + It defines the method that registration filter uses to sample the input fixed image. Only Random is supported for now. + Random + Random + + + logFileReport + logFileReport + + A file to write out final information report in CSV file: MetricName,MetricValue,FixedImageName,FixedMaskName,MovingImageName,MovingMaskName + output + + + printVersionInfo + v + false + + + + diff --git a/tools/xmls/BRAINSInitializedControlPoints.xml b/tools/xmls/BRAINSInitializedControlPoints.xml new file mode 100644 index 0000000..3051423 --- /dev/null +++ b/tools/xmls/BRAINSInitializedControlPoints.xml @@ -0,0 +1,71 @@ + + + Utilities.BRAINS + Initialized Control Points (BRAINS) + + Outputs bspline control points as landmarks + + 5.2.0 + + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Mark Scully + +This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Additional support for Mark Scully and Hans Johnson at the University of Iowa. + + + + + Input/output parameters + + + inputVolume + --inputVolume + + input + Input Volume + + + + outputVolume + --outputVolume + + output + Output Volume + + + + splineGridSize + splineGridSize + + The number of subdivisions of the BSpline Grid to be centered on the image space. Each dimension must have at least 3 subdivisions for the BSpline to be correctly computed. + 14,10,12 + + + + permuteOrder + permuteOrder + + The permutation order for the images. The default is 0,1,2 (i.e. no permutation) + 0,1,2 + + + + outputLandmarksFile + --outputLandmarksFile + + output + Output filename + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/BRAINSLabelStats.xml b/tools/xmls/BRAINSLabelStats.xml new file mode 100644 index 0000000..f8d7b6a --- /dev/null +++ b/tools/xmls/BRAINSLabelStats.xml @@ -0,0 +1,115 @@ + + + Quantification + Label Statistics (BRAINS) + Compute image statistics within each label of a label map. + 5.2.0 + http://www.nitrc.org/plugins/mwiki/index.php/brains:BRAINSClassify + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Vincent A. Magnotta + Funding for this work was provided by the Dana Foundation + + + + + + imageVolume + --imageVolume + + Image Volume + input + + + + + labelVolume + --labelVolume + + Label Volume + + input + + + + labelNameFile + --labelNameFile + + Label Name File + + input + + + + + + + + + outputPrefixColumnNames + --outputPrefixColumnNames + Prefix Column Name(s) + + + + + + outputPrefixColumnValues + --outputPrefixColumnValues + Prefix Column Value(s) + + + + + + labelFileType + --labelFileType + + Label File Type + unknown + unknown + fslxml + ants + csv + + + + + + + + numberOfHistogramBins + --numberOfHistogramBins + Number Of Histogram Bins + + 100000 + + + + minMaxType + --minMaxType + + Define minimim and maximum values based upon the image, label, or via command line + image + image + label + manual + + + + userDefineMinimum + --userDefineMinimum + User define minimum value + + 0.0 + + + + userDefineMaximum + --userDefineMaximum + User define maximum value + + 4095.0 + + + + diff --git a/tools/xmls/BRAINSLandmarkInitializer.xml b/tools/xmls/BRAINSLandmarkInitializer.xml new file mode 100644 index 0000000..57c283a --- /dev/null +++ b/tools/xmls/BRAINSLandmarkInitializer.xml @@ -0,0 +1,81 @@ + + + Utilities.BRAINS + BRAINSLandmarkInitializer + Create transformation file (*.h5) from a pair of landmarks (*fcsv) files. + 5.2.0 + + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Eunyoung Regina Kim, Ali Ghayoor, and Hans J. Johnson + SINAPSE Lab + + + inputFixedLandmarkFilename + inputFixedLandmarkFilename + + input + input landmarks from fixed image *.fcsv + + + + + inputMovingLandmarkFilename + inputMovingLandmarkFilename + + input + input landmarks from moving image *.fcsv + + + + + inputWeightFilename + inputWeightFilename + + input + Input weight file name for landmarks. Higher weighted landmark will be considered more heavily. Weights are propotional, that is the magnitude of weights will be normalized by its minimum and maximum value. + + + + + outputTransformFilename + outputTransformFilename + + output + output transform file name (ex: ./moving2fixed.h5) that is appropriate for applying to the moving image to align with the fixed image. The _Inverse file is also written that is approporate for placing the moving Landmarks with the fixed image. + + + + + outputTransformType + outputTransformType + input + The target transformation type. + AffineTransform + AffineTransform + + VersorRigid3DTransform + BSplineTransform + + + + + inputReferenceImageFilename + + inputReferenceImageFilename + Set the reference image to define the parametric domain for the BSpline transform. + input + + + + bsplineNumberOfControlPoints + + bsplineNumberOfControlPoints + Set the number of control points to define the parametric domain for the BSpline transform. + input + 8 + + + + diff --git a/tools/xmls/BRAINSLinearModelerEPCA.xml b/tools/xmls/BRAINSLinearModelerEPCA.xml new file mode 100644 index 0000000..d657231 --- /dev/null +++ b/tools/xmls/BRAINSLinearModelerEPCA.xml @@ -0,0 +1,30 @@ + + + Utilities.BRAINS + Landmark Linear Modeler (BRAINS) + + Training linear model using EPCA. Implementation based on my MS thesis, "A METHOD FOR AUTOMATED LANDMARK CONSTELLATION DETECTION USING EVOLUTIONARY PRINCIPAL COMPONENTS AND STATISTICAL SHAPE MODELS" + + + + 5.2.0 + http://www.nitrc.org/projects/brainscdetector/ + + + inputTrainingList + + + inputTrainingList + Input Training Landmark List Filename + + input + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/BRAINSLmkTransform.xml b/tools/xmls/BRAINSLmkTransform.xml new file mode 100644 index 0000000..bc7f2bb --- /dev/null +++ b/tools/xmls/BRAINSLmkTransform.xml @@ -0,0 +1,71 @@ + + + Utilities.BRAINS + Landmark Transform (BRAINS) + + This utility program estimates the affine transform to align the fixed landmarks to the moving landmarks, and then generate the resampled moving image to the same physical space as that of the reference image. + + + 5.2.0 + http://www.nitrc.org/projects/brainscdetector/ + + + inputMovingLandmarks + + + inputMovingLandmarks + Input Moving Landmark list file in fcsv + + input + + + inputFixedLandmarks + + + inputFixedLandmarks + Input Fixed Landmark list file in fcsv + + input + + + outputAffineTransform + + + outputAffineTransform + The filename for the estimated affine transform + + output + + + inputMovingVolume + inputMovingVolume + + The filename of input moving volume + input + + + + inputReferenceVolume + inputReferenceVolume + + The filename of the reference volume + input + + + + outputResampledVolume + outputResampledVolume + + The filename of the output resampled volume + output + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/BRAINSMultiModeSegment.xml b/tools/xmls/BRAINSMultiModeSegment.xml new file mode 100644 index 0000000..20ea9e0 --- /dev/null +++ b/tools/xmls/BRAINSMultiModeSegment.xml @@ -0,0 +1,68 @@ + + + Utilities.BRAINS + Segment based on rectangular region of joint histogram (BRAINS) + This tool creates binary regions based on segmenting multiple image modalitities at once. + + 5.2.0 + + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Hans J. Johnson, hans-johnson -at- uiowa.edu, http://www.psychiatry.uiowa.edu + Hans Johnson(1,3,4); Gregory Harris(1), Vincent Magnotta(1,2,3); (1=University of Iowa Department of Psychiatry, 2=University of Iowa Department of Radiology, 3=University of Iowa Department of Biomedical Engineering, 4=University of Iowa Department of Electrical and Computer Engineering) + + + Input/output parameters + + inputVolumes + --inputVolumes + + The input image volumes for finding the largest region filled mask. + input + + + inputMaskVolume + --inputMaskVolume + + The ROI for region to compute histogram levels. + input + + + outputROIMaskVolume + --outputROIMaskVolume + + The ROI automatically found from the input image. + output + + + outputClippedVolumeROI + --outputClippedVolumeROI + + The inputVolume clipped to the region of the brain mask. + output + + + lowerThreshold + --lowerThreshold + + Lower thresholds on the valid histogram regions for each modality + output + + + upperThreshold + --upperThreshold + + Upper thresholds on the valid histogram regions for each modality + output + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/BRAINSMultiSTAPLE.xml b/tools/xmls/BRAINSMultiSTAPLE.xml new file mode 100644 index 0000000..d4c2d52 --- /dev/null +++ b/tools/xmls/BRAINSMultiSTAPLE.xml @@ -0,0 +1,78 @@ + + + + Segmentation.Specialized + Create best representative label map) + given a list of label map images, create a representative/average label map. + + + + Input parameters + + + inputCompositeT1Volume + + inputCompositeT1Volume + input + Composite T1, all label maps transofrmed into the space for this image. + + + + inputLabelVolume + + inputLabelVolume + input + The list of proobabilityimages. + + + + inputTransform + + inputTransform + input + transforms to apply to label volumes + + + labelForUndecidedPixels + + labelForUndecidedPixels + Label for undecided pixels + -1 + + + resampledVolumePrefix + + resampledVolumePrefix + if given, write out resampled volumes with this prefix + + + + skipResampling + + skipResampling + Omit resampling images into reference space + false + + + + + Output filename specifications + + + outputMultiSTAPLE + + outputMultiSTAPLE + output + the MultiSTAPLE average of input label volumes + + + outputConfusionMatrix + + outputConfusionMatrix + output + Confusion Matrix + + + + + diff --git a/tools/xmls/BRAINSMush.xml b/tools/xmls/BRAINSMush.xml new file mode 100644 index 0000000..924436f --- /dev/null +++ b/tools/xmls/BRAINSMush.xml @@ -0,0 +1,187 @@ + + + Utilities.BRAINS + Brain Extraction from T1/T2 image (BRAINS) + + This program: 1) generates a weighted mixture image optimizing the mean and variance and 2) produces a mask of the brain volume + + 5.2.0 + http:://mri.radiology.uiowa.edu + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + + This tool is a modification by Steven Dunn of a program developed by Greg Harris and Ron Pierson. + + + This work was developed by the University of Iowa Departments of Radiology and Psychiatry. This software was supported in part of NIH/NINDS award NS050568. + + + + + + + First Image, Second Image and Mask Image + + + inputFirstVolume + inputFirstVolume + Input image (1) for mixture optimization + + input + + + + inputSecondVolume + inputSecondVolume + Input image (2) for mixture optimization + + input + + + + inputMaskVolume + inputMaskVolume + Input label image for mixture optimization + + input + no_mask_exists + + + + + + Outputs from both MUSH generation and brain volume mask creation + + + outputWeightsFile + outputWeightsFile + Output Weights File + + OptimalMixtureWeights.txt + output + + + + outputVolume + outputVolume + The MUSH image produced from the T1 and T2 weighted images + + output + MUSH_image.nii.gz + + + + outputMask + outputMask + The brain volume mask generated from the MUSH image + + output + output.nii.gz + + + + + + Seed point for brain region filling + + + seed + seed + Seed Point for Brain Region Filling + + input + 128,128,128 + + + + + + Target Statistic Parameters + + + desiredMean + desiredMean + Desired mean within the mask for weighted sum of both images. + + input + 10000.0 + + + + desiredVariance + desiredVariance + Desired variance within the mask for weighted sum of both images. + + input + 0.0 + + + + lowerThresholdFactorPre + lowerThresholdFactorPre + Lower threshold factor for finding an initial brain mask + + input + 1.485 + + + + upperThresholdFactorPre + upperThresholdFactorPre + Upper threshold factor for finding an initial brain mask + + input + 0.62 + + + + lowerThresholdFactor + lowerThresholdFactor + Lower threshold factor for defining the brain mask + + input + 1.2431 + + + + upperThresholdFactor + upperThresholdFactor + Upper threshold factor for defining the brain mask + + input + 0.71956 + + + + boundingBoxSize + boundingBoxSize + Size of the cubic bounding box mask used when no brain mask is present + + input + 90,60,75 + + + + boundingBoxStart + boundingBoxStart + XYZ point-coordinate for the start of the cubic bounding box mask used when no brain mask is present + + input + 83,113,80 + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + + diff --git a/tools/xmls/BRAINSPosteriorToContinuousClass.xml b/tools/xmls/BRAINSPosteriorToContinuousClass.xml new file mode 100644 index 0000000..5955c1f --- /dev/null +++ b/tools/xmls/BRAINSPosteriorToContinuousClass.xml @@ -0,0 +1,95 @@ + + + BRAINS.Classify + Tissue Classification + This program will generate an 8-bit continuous tissue classified image based on BRAINSABC posterior images. + 5.2.0 + http://www.nitrc.org/plugins/mwiki/index.php/brains:BRAINSClassify + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Vincent A. Magnotta + Funding for this work was provided by NIH/NINDS award NS050568 + + + + + + inputWhiteVolume + --inputWhiteVolume + + White Matter Posterior Volume + input + + + + + inputBasalGmVolume + --inputBasalGmVolume + + Basal Grey Matter Posterior Volume + input + + + + + inputSurfaceGmVolume + --inputSurfaceGmVolume + + Surface Grey Matter Posterior Volume + input + + + + + inputCsfVolume + --inputCsfVolume + + CSF Posterior Volume + input + + + + + inputVbVolume + --inputVbVolume + + Venous Blood Posterior Volume + input + + + + + inputCrblGmVolume + --inputCrblGmVolume + + Cerebellum Grey Matter Posterior Volume + input + + + + + inputCrblWmVolume + --inputCrblWmVolume + + Cerebellum White Matter Posterior Volume + input + + + + + + + + + + + outputVolume + --outputVolume + + Output Continuous Tissue Classified Image + output + + + + + + diff --git a/tools/xmls/BRAINSROIAuto.xml b/tools/xmls/BRAINSROIAuto.xml new file mode 100644 index 0000000..a579fa1 --- /dev/null +++ b/tools/xmls/BRAINSROIAuto.xml @@ -0,0 +1,108 @@ + + + Segmentation.Specialized + Foreground masking (BRAINS) + This program is used to create a mask over the most prominant forground region in an image. This is accomplished via a combination of otsu thresholding and a closing operation. More documentation is available here: http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/ForegroundMasking. + + 5.2.0 + + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Hans J. Johnson, hans-johnson -at- uiowa.edu, http://www.psychiatry.uiowa.edu + Hans Johnson(1,3,4); Kent Williams(1); Gregory Harris(1), Vincent Magnotta(1,2,3); Andriy Fedorov(5), fedorov -at- bwh.harvard.edu (Slicer integration); (1=University of Iowa Department of Psychiatry, 2=University of Iowa Department of Radiology, 3=University of Iowa Department of Biomedical Engineering, 4=University of Iowa Department of Electrical and Computer Engineering, 5=Surgical Planning Lab, Harvard) + + + Input/output parameters + + inputVolume + inputVolume + + The input image for finding the largest region filled mask. + input + + + outputROIMaskVolume + outputROIMaskVolume + + The ROI automatically found from the input image. + output + + + outputVolume + outputVolume + + The inputVolume with optional [maskOutput|cropOutput] to the region of the brain mask. + output + + + maskOutput + maskOutput + + The inputVolume multiplied by the ROI mask. + true + + + cropOutput + cropOutput + + The inputVolume cropped to the region of the ROI mask. + false + + + + + + + + otsuPercentileThreshold + otsuPercentileThreshold + + Parameter to the Otsu threshold algorithm. + 0.01 + + + + thresholdCorrectionFactor + thresholdCorrectionFactor + + A factor to scale the Otsu algorithm's result threshold, in case clipping mangles the image. + 1.0 + + + + closingSize + closingSize + + The Closing Size (in millimeters) for largest connected filled mask. This value is divided by image spacing and rounded to the next largest voxel number. + 9.0 + + + + ROIAutoDilateSize + ROIAutoDilateSize + + This flag is only relavent when using ROIAUTO mode for initializing masks. It defines the final dilation size to capture a bit of background outside the tissue region. At setting of 10mm has been shown to help regularize a BSpline registration type so that there is some background constraints to match the edges of the head better. + 0.0 + + + + outputVolumePixelType + outputVolumePixelType + + The output image Pixel Type is the scalar datatype for representation of the Output Volume. + short + float + short + ushort + int + uint + uchar + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/BRAINSResample.xml b/tools/xmls/BRAINSResample.xml new file mode 100644 index 0000000..915d93d --- /dev/null +++ b/tools/xmls/BRAINSResample.xml @@ -0,0 +1,154 @@ + + + Registration + Resample Image (BRAINS) + + + This program collects together three common image processing tasks that all involve resampling an image volume: Resampling to a new resolution and spacing, applying a transformation (using an ITK transform IO mechanisms) and Warping (using a vector image deformation field). Full documentation available here: http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/BRAINSResample. + + 5.2.0 + http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/BRAINSResample + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + This tool was developed by Vincent Magnotta, Greg Harris, and Hans Johnson. + The development of this tool was supported by funding from grants NS050568 and NS40068 from the National Institute of Neurological Disorders and Stroke and grants MH31593, MH40856, from the National Institute of Mental Health. + + + + Parameters for specifying the image to warp and resulting image space + + + inputVolume + inputVolume + Image To Warp + + input + + + + referenceVolume + referenceVolume + Reference image used only to define the output space. If not specified, the warping is done in the same space as the image to warp. + + input + + + + + + Resulting deformed image parameters + + + outputVolume + outputVolume + Resulting deformed image + + output + + + + + pixelType + pixelType + + Specifies the pixel type for the input/output images. The "binary" pixel type uses a modified algorithm whereby the image is read in as unsigned char, a signed distance map is created, signed distance map is resampled, and then a thresholded image of type unsigned char is written to disk. + float + float + short + ushort + int + uint + uchar + binary + + + + + + + Parameters used to define home the image is warped + + + deformationVolume + deformationVolume + Displacement Field to be used to warp the image (ITKv3 or earlier) + + input + + + + + warpTransform + warpTransform + + Filename for the BRAINSFit transform (ITKv3 or earlier) or composite transform file (ITKv4) + input + + + + + interpolationMode + interpolationMode + + Type of interpolation to be used when applying transform to moving volume. Options are Linear, ResampleInPlace, NearestNeighbor, BSpline, or WindowedSinc + Linear + NearestNeighbor + Linear + ResampleInPlace + BSpline + WindowedSinc + Hamming + Cosine + Welch + Lanczos + Blackman + + + + inverseTransform + inverseTransform + + True/False is to compute inverse of given transformation. Default is false + false + + + defaultValue + defaultValue + + Default voxel value + 0.0 + + + + + + + + + + gridSpacing + gridSpacing + + Add warped grid to output image to help show the deformation that occured with specified spacing. A spacing of 0 in a dimension indicates that grid lines should be rendered to fall exactly (i.e. do not allow displacements off that plane). This is useful for makeing a 2D image of grid lines from the 3D space + + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/BRAINSResize.xml b/tools/xmls/BRAINSResize.xml new file mode 100644 index 0000000..49e62f6 --- /dev/null +++ b/tools/xmls/BRAINSResize.xml @@ -0,0 +1,68 @@ + + + Registration + Resize Image (BRAINS) + + +This program is useful for downsampling an image by a constant scale factor. + + 5.2.0 + + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + This tool was developed by Hans Johnson. + The development of this tool was supported by funding from grants NS050568 and NS40068 from the National Institute of Neurological Disorders and Stroke and grants MH31593, MH40856, from the National Institute of Mental Health. + + + + Parameters for specifying the image to warp and resulting image space + + + inputVolume + inputVolume + Image To Scale + + input + + + + + + Resulting scaled image parameters + + + outputVolume + outputVolume + Resulting scaled image + + output + + + + pixelType + pixelType + + Specifies the pixel type for the input/output images. The "binary" pixel type uses a modified algorithm whereby the image is read in as unsigned char, a signed distance map is created, signed distance map is resampled, and then a thresholded image of type unsigned char is written to disk. + float + float + short + ushort + int + uint + uchar + binary + + + + + + Parameters used to define the scaling of the output image + + + scaleFactor + scaleFactor + + The scale factor for the image spacing. + 2.0 + + + diff --git a/tools/xmls/BRAINSSnapShotWriter.xml b/tools/xmls/BRAINSSnapShotWriter.xml new file mode 100644 index 0000000..b7c8a40 --- /dev/null +++ b/tools/xmls/BRAINSSnapShotWriter.xml @@ -0,0 +1,78 @@ + + + Utilities.BRAINS + BRAINSSnapShotWriter + Create 2D snapshot of input images. Mask images are color-coded + 5.2.0 + + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Eunyoung Regina Kim + + + + + inputVolumes + inputVolumes + + input + Input image volume list to be extracted as 2D image. Multiple input is possible. At least one input is required. + + + + + inputBinaryVolumes + inputBinaryVolumes + + input + Input mask (binary) volume list to be extracted as 2D image. Multiple input is possible. + + + + + inputSliceToExtractInPhysicalPoint + inputSliceToExtractInPhysicalPoint + + input + 2D slice number of input images. For autoWorkUp output, which AC-PC aligned, 0,0,0 will be the center. + + + + + inputSliceToExtractInIndex + inputSliceToExtractInIndex + + input + 2D slice number of input images. For size of 256*256*256 image, 128 is usually used. + + + + + inputSliceToExtractInPercent + inputSliceToExtractInPercent + + input + 2D slice number of input images. Percentage input from 0%-100%. (ex. --inputSliceToExtractInPercent 50,50,50 + 50,50,50 + + + + inputPlaneDirection + inputPlaneDirection + + input + Plane to display. In general, 0=saggital, 1=coronal, and 2=axial plane. + 0,1,2 + + + + outputFilename + outputFilename + + output + 2D file name of input images. Required. + + + + + + diff --git a/tools/xmls/BRAINSStripRotation.xml b/tools/xmls/BRAINSStripRotation.xml new file mode 100644 index 0000000..dacc85b --- /dev/null +++ b/tools/xmls/BRAINSStripRotation.xml @@ -0,0 +1,35 @@ + + + Utilities + BRAINS Strip Rotation + Read an Image, write out same image with identity rotation matrix plus an ITK transform file + 5.2.0 + + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Kent WIlliams + + + + inputVolume + inputVolume + Image To Warp + + input + + + outputVolume + outputVolume + Resulting deformed image + + output + + + transform + transform + + Filename for the transform file + output + + + + diff --git a/tools/xmls/BRAINSTalairach.xml b/tools/xmls/BRAINSTalairach.xml new file mode 100644 index 0000000..b3f8a3a --- /dev/null +++ b/tools/xmls/BRAINSTalairach.xml @@ -0,0 +1,129 @@ + + + + BRAINS.Segmentation + + + BRAINS Talairach + + + This program creates a VTK structured grid defining the Talairach coordinate system based on four points: AC, PC, IRP, and SLA. The resulting structred grid can be written as either a classic VTK file or the new VTK XML file format. Two representations of the resulting grid can be written. The first is a bounding box representation that also contains the location of the AC and PC points. The second representation is the full Talairach grid representation that includes the additional rows of boxes added to the inferior allowing full coverage of the cerebellum. + 5.2.0 + http://www.nitrc.org/plugins/mwiki/index.php/brains:BRAINSTalairach + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + + Steven Dunn and Vincent Magnotta + + Funding for this work was provided by NIH/NINDS award NS050568 + + + + Input parameters to be used in generating the structured grid + + + AC + AC + Location of AC Point + + input + + + + ACisIndex + ACisIndex + AC Point is Index + + input + 0 + + + + PC + PC + Location of PC Point + + input + + + + PCisIndex + PCisIndex + PC Point is Index + + input + 0 + + + + SLA + SLA + Location of SLA Point + + input + + + + SLAisIndex + SLAisIndex + SLA Point is Index + + input + 0 + + + + IRP + IRP + Location of IRP Point + + input + + + + IRPisIndex + IRPisIndex + IRP Point is Index + + input + 0 + + + + inputLandmarksFile + inputLandmarksFile + input landmarks file: *.fcsv + + input + + + + inputVolume + inputVolume + Input image used to define physical space of images + + input + + + + + + + Output Parameters + + + outputBox + outputBox + Name of the resulting Talairach Bounding Box file + + output + + + + outputGrid + outputGrid + Name of the resulting Talairach Grid file + + output + + + diff --git a/tools/xmls/BRAINSTalairachMask.xml b/tools/xmls/BRAINSTalairachMask.xml new file mode 100644 index 0000000..392fefe --- /dev/null +++ b/tools/xmls/BRAINSTalairachMask.xml @@ -0,0 +1,82 @@ + + + + BRAINS.Segmentation + + + Talairach Mask + + + This program creates a binary image representing the specified Talairach region. The input is an example image to define the physical space for the resulting image, the Talairach grid representation in VTK format, and the file containing the Talairach box definitions to be generated. These can be combined in BRAINS to create a label map using the procedure Brains::WorkupUtils::CreateLabelMapFromBinaryImages. + 5.2.0 + http://www.nitrc.org/plugins/mwiki/index.php/brains:BRAINSTalairachMask + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + + Steven Dunn and Vincent Magnotta + + Funding for this work was provided by NIH/NINDS award NS050568 + + + + Input parameters to be used in generating the Talairach mask + + + inputVolume + inputVolume + Input image used to define physical space of resulting mask + + input + + + + talairachParameters + talairachParameters + Name of the Talairach parameter file. + + input + + + + talairachBox + talairachBox + Name of the Talairach box file. + + input + + + + hemisphereMode + hemisphereMode + Mode for box creation: left, right, both + + both + left + right + both + + + + expand + expand + Expand exterior box to include surface CSF + + input + false + + + + + + + Output Parameters + + + outputVolume + outputVolume + Output filename for the resulting binary image + + output + + + + diff --git a/tools/xmls/BRAINSTransformConvert.xml b/tools/xmls/BRAINSTransformConvert.xml new file mode 100644 index 0000000..f6369f5 --- /dev/null +++ b/tools/xmls/BRAINSTransformConvert.xml @@ -0,0 +1,68 @@ + + + Utilities.BRAINS + BRAINS Transform Convert + Convert ITK transforms to higher order transforms + 5.2.0 + A utility to convert between transform file formats. + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Hans J. Johnson,Kent Williams, Ali Ghayoor + + + + + + Input/output parameters + + input + inputTransform + + + --inputTransform + + + input + referenceVolume + + --referenceVolume + + + + outputTransformType + --outputTransformType + The target transformation type. Must be conversion-compatible with the input transform type + Affine + Affine + VersorRigid + ScaleVersor + ScaleSkewVersor + DisplacementField + Same + + + + outputPrecisionType + --outputPrecisionType + Precision type of the output transform. It can be either single precision or double precision + double + double + float + + + + output + displacementVolume + + --displacementVolume + + + output + outputTransform + + + --outputTransform + + + + + diff --git a/tools/xmls/BRAINSTransformFromFiducials.xml b/tools/xmls/BRAINSTransformFromFiducials.xml new file mode 100644 index 0000000..1b20c51 --- /dev/null +++ b/tools/xmls/BRAINSTransformFromFiducials.xml @@ -0,0 +1,71 @@ + + + Registration.Specialized + Fiducial Registration (BRAINS) + Computes a rigid, similarity or affine transform from a matched list of fiducials + 5.2.0 + http://www.slicer.org/slicerWiki/index.php/Modules:TransformFromFiducials-Documentation-3.6 + + Casey B Goodlett + + This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. + + + + fixedLandmarks + Ordered list of landmarks in the fixed image + + fixedLandmarks + input + + + movingLandmarks + Ordered list of landmarks in the moving image + + movingLandmarks + input + + + saveTransform + + Save the transform that results from registration + saveTransform + output + + + transformType + Type of transform to produce + + transformType + Translation + Rigid + Similarity + Rigid + + + + + fixedLandmarksFile + An fcsv formatted file with a list of landmark points. + + fixedLandmarksFile + input + + + + movingLandmarksFile + An fcsv formatted file with a list of landmark points. + + movingLandmarksFile + input + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/BRAINSTrimForegroundInDirection.xml b/tools/xmls/BRAINSTrimForegroundInDirection.xml new file mode 100644 index 0000000..78e317a --- /dev/null +++ b/tools/xmls/BRAINSTrimForegroundInDirection.xml @@ -0,0 +1,83 @@ + + + Utilities.BRAINS + Trim Foreground In Direction (BRAINS) + This program will trim off the neck and also air-filling noise from the inputImage. + 5.2.0 + http://www.nitrc.org/projects/art/ + + + inputVolume + i + inputVolume + + Input image to trim off the neck (and also air-filling noise.) + input + + + + outputVolume + o + outputVolume + + Output image with neck and air-filling noise trimmed isotropic image with AC at center of image. + output + + + + directionCode + + directionCode + x + + This flag chooses which dimension to compare. The sign lets you flip direction. + + 3 + + + otsuPercentileThreshold + + otsuPercentileThreshold + p + + This is a parameter to FindLargestForegroundFilledMask, which is employed to trim off air-filling noise. + + 0.01 + + + closingSize + + closingSize + c + + This is a parameter to FindLargestForegroundFilledMask + + 9 + + + headSizeLimit + + headSizeLimit + s + + Use this to vary from the command line our search for how much upper tissue is head for the center-of-mass calculation. Units are CCs, not cubic millimeters. + + 1000.0 + + + backgroundFillValueString + BackgroundFillValue + z + Fill the background of image with specified short int value. Enter number or use BIGNEG for a large negative number. + + 0 + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/BinaryMaskEditorBasedOnLandmarks.xml b/tools/xmls/BinaryMaskEditorBasedOnLandmarks.xml new file mode 100644 index 0000000..347789f --- /dev/null +++ b/tools/xmls/BinaryMaskEditorBasedOnLandmarks.xml @@ -0,0 +1,71 @@ + + + Segmentation.Specialized + BRAINS Binary Mask Editor Based On Landmarks(BRAINS) + + + + 5.2.0 + http://www.nitrc.org/projects/brainscdetector/ + + + inputBinaryVolume + inputBinaryVolume + + Input binary image in which to be edited + input + + + + outputBinaryVolume + outputBinaryVolume + + Output binary image in which to be edited + output + + + + inputLandmarksFilename + + inputLandmarksFilename + + The filename for the landmark definition file in the same format produced by Slicer3 (.fcsv). + input + + + + inputLandmarkNames + + inputLandmarkNames + + A target input landmark name to be edited. This should be listed in the inputLandmakrFilename Given. + input + + + + setCutDirectionForLandmark + + setCutDirectionForLandmark + + Setting the cutting out direction of the input binary image to the one of anterior, posterior, left, right, superior or posterior. (ENUMERATION: ANTERIOR, POSTERIOR, LEFT, RIGHT, SUPERIOR, POSTERIOR) + + + + setCutDirectionForObliquePlane + + setCutDirectionForObliquePlane + + If this is true, the mask will be thresholded out to the direction of inferior, posterior, and/or left. Default behavrior is that cutting out to the direction of superior, anterior and/or right. + input + + + + inputLandmarkNamesForObliquePlane + + inputLandmarkNamesForObliquePlane + + Three subset landmark names of inputLandmarksFilename for a oblique plane computation. The plane computed for binary volume editing. + input + + + diff --git a/tools/xmls/CLIROITest.xml b/tools/xmls/CLIROITest.xml new file mode 100644 index 0000000..a00afa7 --- /dev/null +++ b/tools/xmls/CLIROITest.xml @@ -0,0 +1,21 @@ + + + Testing + CLI ROI Test + 1 + 1.0 + + + ROI_One + + input + --ri + + + ROI_List + + input + --ro + + + diff --git a/tools/xmls/CastScalarVolume.xml b/tools/xmls/CastScalarVolume.xml new file mode 100644 index 0000000..846a532 --- /dev/null +++ b/tools/xmls/CastScalarVolume.xml @@ -0,0 +1,48 @@ + + + Filtering.Arithmetic + Cast Scalar Volume + + 0.1.0.$Revision: 2104 $(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/Cast + + Nicole Aucoin (SPL, BWH), Ron Kikinis (SPL, BWH) + + + + + + InputVolume + + input + 0 + + + + OutputVolume + + output + 1 + + + + + + + Type + + + -t + --type + Char + UnsignedChar + Short + UnsignedShort + Int + UnsignedInt + Float + Double + UnsignedChar + + + diff --git a/tools/xmls/CheckerBoardFilter.xml b/tools/xmls/CheckerBoardFilter.xml new file mode 100644 index 0000000..c7a43c5 --- /dev/null +++ b/tools/xmls/CheckerBoardFilter.xml @@ -0,0 +1,47 @@ + + + Filtering + CheckerBoard Filter + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/CheckerBoard + + Bill Lorensen (GE) + + + + + + checkerPattern + --checkerPattern + + + 2,2,2 + + + + + + + inputVolume1 + + input + 0 + + + + inputVolume2 + + input + 1 + + + + outputVolume + + output + 2 + + + + diff --git a/tools/xmls/ComputeReflectiveCorrelationMetric.xml b/tools/xmls/ComputeReflectiveCorrelationMetric.xml new file mode 100644 index 0000000..d272300 --- /dev/null +++ b/tools/xmls/ComputeReflectiveCorrelationMetric.xml @@ -0,0 +1,35 @@ + + + Testing + Compute RC metric values in exhausive search + + + 5.2.0 + + + Ali Ghayoor + + + + + + + inputVolume + inputVolume + + Input image. + input + + + + + outputCSVFile + outputCSVFile + + A file to write out final information report in CSV file: HA,BA,LR,MetricValue(cc) + output + + + + + diff --git a/tools/xmls/CreateDICOMSeries.xml b/tools/xmls/CreateDICOMSeries.xml new file mode 100644 index 0000000..ee4ad72 --- /dev/null +++ b/tools/xmls/CreateDICOMSeries.xml @@ -0,0 +1,266 @@ + + + Converters + Create a DICOM Series + + 0.1.0.$Revision$(alpha) + https://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/CreateDICOMSeries + + Bill Lorensen (GE) + + + + + + patientName + --patientName + + + Anonymous + + + patientID + --patientID + + + 123456 + + + patientBirthDate + --patientBirthDate + + + 20060101 + + + patientSex + --patientSex + + + M + + + patientComments + --patientComments + + + None + + + + + + + studyID + --studyID + + + 123456 + + + studyDate + --studyDate + + + 20060101 + + + studyTime + --studyTime + + + + + + studyComments + --studyComments + + + None + + + studyDescription + --studyDescription + + + None + + + modality + --modality + + + CT + + + manufacturer + --manufacturer + + + GE Medical Systems + + + model + --model + + + None + + + + + + + seriesNumber + --seriesNumber + + + 123456 + + + seriesDescription + --seriesDescription + + + None + + + seriesDate + --seriesDate + + + + + + seriesTime + --seriesTime + + + + + + + + + + + rescaleIntercept + --rescaleIntercept + + 0.0000 + + + + rescaleSlope + --rescaleSlope + + 1.0000 + + + contentDate + --contentDate + + + + + + contentTime + --contentTime + + + + + + + + + + studyInstanceUID + --studyInstanceUID + + + + + + seriesInstanceUID + --seriesInstanceUID + + + + + + frameOfReferenceInstanceUID + --frameOfReferenceInstanceUID + + + + + + + + + + inputVolume + + input + 0 + + + + + + + + dicomDirectory + --dicomDirectory + + + output + ./ + + + dicomPrefix + --dicomPrefix + + + IMG + + + dicomNumberFormat + --dicomNumberFormat + + + %04d + + + reverseImages + --reverseImages + + + false + + + useCompression + --useCompression + + + false + + + + Type + + + --type + --t + Short + UnsignedChar + Char + UnsignedChar + Short + UnsignedShort + Int + UnsignedInt + + + diff --git a/tools/xmls/CurvatureAnisotropicDiffusion.xml b/tools/xmls/CurvatureAnisotropicDiffusion.xml new file mode 100644 index 0000000..ee806d3 --- /dev/null +++ b/tools/xmls/CurvatureAnisotropicDiffusion.xml @@ -0,0 +1,72 @@ + + + Filtering.Denoising + 2 + Curvature Anisotropic Diffusion + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/CurvatureAnisotropicDiffusion + + Bill Lorensen (GE) + + + + + + conductance + --conductance + + + + 1 + + 0 + 10 + .01 + + + + numberOfIterations + --iterations + + + 1 + + 1 + 30 + 1 + + + + timeStep + --timeStep + + + + 0.0625 + + .001 + .0625 + .001 + + + + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + diff --git a/tools/xmls/DWICompare.xml b/tools/xmls/DWICompare.xml new file mode 100644 index 0000000..a67be5f --- /dev/null +++ b/tools/xmls/DWICompare.xml @@ -0,0 +1,37 @@ + + + Converters + Nrrd DWI comparison + + 5.2.0 + http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/DWIConvert + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Mark Scully (UIowa) + + + + + + inputVolume1 + --inputVolume1 + + input + + + + inputVolume2 + --inputVolume2 + + input + + + + useIdentityMeasurementFrame + --useIdentityMeasurementFrame + + false + input + + + + diff --git a/tools/xmls/DWIConvert.xml b/tools/xmls/DWIConvert.xml new file mode 100644 index 0000000..b302b19 --- /dev/null +++ b/tools/xmls/DWIConvert.xml @@ -0,0 +1,184 @@ + + + Diffusion.Import and Export + Diffusion-weighted DICOM Import (DWIConvert) + + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.5/Modules/DWIConverter + Apache License Version 2.0 + Hans Johnson (UIowa), Vince Magnotta (UIowa) Joy Matsui (UIowa), Kent Williams (UIowa), Mark Scully (Uiowa), Xiaodong Tao (GE) + + + + + + + conversionMode + --conversionMode + + DicomToNrrd + DicomToNrrd + DicomToFSL + NrrdToFSL + FSLToNrrd + + + inputVolume + --inputVolume + + input + + + + + outputVolume + -o + --outputVolume + + output + + + + + + + + + inputDicomDirectory + -i + --inputDicomDirectory + + input + + + + + + + + + + fslNIFTIFile + --fslNIFTIFile + + input + + + + inputBValues + --inputBValues + + input + + + + inputBVectors + --inputBVectors + + input + + + + + + + + + outputNiftiFile + --outputNiftiFile + + output + + + + outputBValues + --outputBValues + + output + + .bval)]]> + + + + outputBVectors + --outputBVectors + + output + + .bvec)]]> + + + + + + + + + writeProtocolGradientsFile + --writeProtocolGradientsFile + + + false + + + useIdentityMeaseurementFrame + --useIdentityMeaseurementFrame + + + false + + + useBMatrixGradientDirections + --useBMatrixGradientDirections + + + false + + + outputDirectory + --outputDirectory + + output + + . + + + smallGradientThreshold + --smallGradientThreshold + + + 0.2 + + + transpose + transposeInputBVectors + + true + + + + allowLossyConversion + allowLossyConversion + + false + + + + + + + gradientVectorFile + --gradientVectorFile + + output + + + + fMRIOutput + --fMRI + + DEPRECATED: No support or testing. Output a NRRD file, but without gradients + + + + diff --git a/tools/xmls/DWISimpleCompare.xml b/tools/xmls/DWISimpleCompare.xml new file mode 100644 index 0000000..69840c1 --- /dev/null +++ b/tools/xmls/DWISimpleCompare.xml @@ -0,0 +1,36 @@ + + + Converters + Nrrd DWI comparison + + 5.2.0 + http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/DWIConvert + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Mark Scully (UIowa) + + + + + + inputVolume1 + --inputVolume1 + + input + + + + inputVolume2 + --inputVolume2 + + input + + + + CheckDWIData + --checkDWIData + + false + check for existence of DWI data, and if present, compare it + + + diff --git a/tools/xmls/DiffusionTensorTest.xml b/tools/xmls/DiffusionTensorTest.xml new file mode 100644 index 0000000..307d191 --- /dev/null +++ b/tools/xmls/DiffusionTensorTest.xml @@ -0,0 +1,28 @@ + + + Legacy.Work in Progress.Diffusion Tensor.Test + Simple IO Test + + 0.1.0.$Revision$(alpha) + + + Bill Lorensen (GE) + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + diff --git a/tools/xmls/ESLR.xml b/tools/xmls/ESLR.xml new file mode 100644 index 0000000..605f94b --- /dev/null +++ b/tools/xmls/ESLR.xml @@ -0,0 +1,80 @@ + + + Segmentation.Specialized + Clean Contiguous Label Map (BRAINS) + From a range of label map values, extract the largest contiguous region of those labels + + + + + + inputVolume + inputVolume + Input Label Volume + + + input + + + outputVolume + outputVolume + Output Label Volume + + + output + + + low + low + The lower bound of the labels to be used. + + 1 + + + high + high + The higher bound of the labels to be used. + + 5 + + + closingSize + closingSize + The closing size for hole filling. + + 2 + + + openingSize + openingSize + The opening size for hole filling. + + 2 + + + safetySize + safetySize + The safetySize size for the clipping region. + + 1 + + + preserveOutside + preserveOutside + For values outside the specified range, preserve those values. + + false + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + + diff --git a/tools/xmls/ExecutionModelTour.xml b/tools/xmls/ExecutionModelTour.xml new file mode 100644 index 0000000..a8fb8bd --- /dev/null +++ b/tools/xmls/ExecutionModelTour.xml @@ -0,0 +1,360 @@ + + + Developer Tools + Execution Model Tour + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ExecutionModelTour + + Daniel Blezek (GE), Bill Lorensen (GE) + + + + + + integerVariable + -i + --integer + + + 30 + + + doubleVariable + -d + --double + + + 30 + + 0 + 1.e3 + 10 + + + + + + + + floatVector + f + + + 1.3,2,-14 + + + stringVector + string_vector + + + foo,bar,foobar + + + + + + + stringChoice + e + enumeration + + + Bill + Ron + Eric + Bill + Ross + Steve + Will + árvíztűrő tükörfúrógép + + + + + + + boolean1 + boolean1 + + + true + + + boolean2 + boolean2 + + + false + + + boolean3 + boolean3 + + + + + + + + + file1 + + + input + + + files + + + input + + + outputFile1 + + + output + + + directory1 + + + input + + + image1 + + + input + + + image2 + + + output + + + + + + + transformInput + + + input + + + transform1 + + + input + + + transformInputNonlinear + + + input + + + transformInputBspline + + + input + + + transformOutput + + + output + + + transform2 + + + output + + + transformOutputNonlinear + + + output + + + transformOutputBspline + + + output + + + + + + + seed + + --seed + + 0,0,0 + + + seedsFile + + + seedsFile + input + + + seedsOutFile + + + seedsOutFile + output + + + + + + + InputModel + + inputModel + input + + + + OutputModel + + outputModel + output + + + + ModelSceneFile + output + + modelSceneFile + + models.mrml + + + + + + + arg0 + input + 0 + + + + + arg1 + output + 1 + + + + + + + + regions + + region + + + + + + + inputFA + input + + inputFA + + + + outputFA + output + + outputFA + + + + + + + inputDT + input + + inputDT + +
+ + outputDT + output + + outputDT + +
+
+ + + + anintegerreturn + + output + 5 + + + + abooleanreturn + + output + false + + + + afloatreturn + + output + 7.0 + + + + adoublereturn + + output + 14.0 + + + + astringreturn + + output + Hello + + + + anintegervectorreturn + + output + 1,2,3 + + + + astringchoicereturn + output + + + Bill + Ron + Eric + Bill + Ross + Steve + Will + árvíztűrő tükörfúrógép + + +
diff --git a/tools/xmls/ExpertAutomatedRegistration.xml b/tools/xmls/ExpertAutomatedRegistration.xml new file mode 100644 index 0000000..76c0b26 --- /dev/null +++ b/tools/xmls/ExpertAutomatedRegistration.xml @@ -0,0 +1,263 @@ + + + Legacy.Registration + Expert Automated Registration + 7 + + 0.1.0.$Revision: 2104 $(alpha) + http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ExpertAutomatedRegistration + + Stephen R Aylward (Kitware), Casey B Goodlett (Kitware) + + + + + + fixedImage + + input + 0 + + + + movingImage + + input + 1 + + + + resampledImage + + output + resampledImage + + + + + + + + + loadTransform + + + loadTransform + input + + + + saveTransform + + + saveTransform + output + + + + + + initialization + + + initialization + None + Landmarks + ImageCenters + CentersOfMass + SecondMoments + CentersOfMass + + + registration + + + registration + None + Initial + Rigid + Affine + BSpline + PipelineRigid + PipelineAffine + PipelineBSpline + PipelineAffine + + + metric + + + metric + MattesMI + NormCorr + MeanSqrd + MattesMI + + + expectedOffset + + + expectedOffset + 10 + + + expectedRotation + + + expectedRotation + 0.1 + + + expectedScale + + + expectedScale + 0.05 + + + expectedSkew + + + expectedSkew + 0.01 + + + + + + + verbosityLevel + + + verbosityLevel + Silent + Standard + Verbose + Standard + + + sampleFromOverlap + + + sampleFromOverlap + false + + + fixedImageMask + + input + fixedImageMask + + + + randomNumberSeed + + + randomNumberSeed + 0 + + + numberOfThreads + + + numberOfThreads + 0 + + + minimizeMemory + + + minimizeMemory + false + + + interpolation + + + interpolation + NearestNeighbor + Linear + BSpline + Linear + + + + + + + fixedLandmarks + + + fixedLandmarks + + + + movingLandmarks + + + movingLandmarks + + + + + + + + rigidMaxIterations + + + rigidMaxIterations + 100 + + + rigidSamplingRatio + + + rigidSamplingRatio + 0.01 + + + + + + + affineMaxIterations + + + affineMaxIterations + 50 + + + affineSamplingRatio + + + affineSamplingRatio + 0.02 + + + + + + + bsplineMaxIterations + + + bsplineMaxIterations + 20 + + + bsplineSamplingRatio + + + bsplineSamplingRatio + 0.10 + + + controlPointSpacing + + + controlPointSpacing + 40 + + + diff --git a/tools/xmls/ExtractSkeleton.xml b/tools/xmls/ExtractSkeleton.xml new file mode 100644 index 0000000..0f97285 --- /dev/null +++ b/tools/xmls/ExtractSkeleton.xml @@ -0,0 +1,70 @@ + + + Filtering + Extract Skeleton + + 0.1.0.$Revision: 2104 $(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ExtractSkeleton + + Pierre Seroul (UNC), Martin Styner (UNC), Guido Gerig (UNC), Stephen Aylward (Kitware) + + + + + + InputImageFileName + + input + 1 + + + + OutputImageFileName + + output + 2 + + + + + + + + SkeletonType + type + + + 1D + 1D + 2D + + + DontPruneBranches + dontPrune + + + false + + + NumberOfPoints + numPoints + + + 100 + + + OutputPointsFileName + pointsFile + + + skeleton.txt + + + OutputFiducialsFileName + + + fiducialsFile + output + + + diff --git a/tools/xmls/FiducialRegistration.xml b/tools/xmls/FiducialRegistration.xml new file mode 100644 index 0000000..f721f4b --- /dev/null +++ b/tools/xmls/FiducialRegistration.xml @@ -0,0 +1,61 @@ + + + Registration.Specialized + Fiducial Registration + + 0.1.0.$Revision$ + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/TransformFromFiducials + + Casey B Goodlett (Kitware), Dominik Meier (SPL, BWH) + + + + + + fixedLandmarks + + + fixedLandmarks + input + + + movingLandmarks + + + movingLandmarks + input + + + saveTransform + + + saveTransform + output + + + + + transformType + + + transformType + Translation + Rigid + Similarity + Rigid + + + rms + + + output + 0 + + + outputMessage + + output + + + + diff --git a/tools/xmls/FindCenterOfBrain.xml b/tools/xmls/FindCenterOfBrain.xml new file mode 100644 index 0000000..fcdb35f --- /dev/null +++ b/tools/xmls/FindCenterOfBrain.xml @@ -0,0 +1,142 @@ + + + Utilities.BRAINS + Center Of Brain (BRAINS) + Finds the center point of a brain + + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Hans J. Johnson, hans-johnson -at- uiowa.edu, http://wwww.psychiatry.uiowa.edu + Hans Johnson(1,3,4); Kent Williams(1); (1=University of Iowa Department of Psychiatry, 3=University of Iowa Department of Biomedical Engineering, 4=University of Iowa Department of Electrical and Computer Engineering + 5.2.0 + + + + InputVolume + --inputVolume + + The image in which to find the center. + input + + + + ImageMask + --imageMask + + + input + + + + ClippedImageMask + --clippedImageMask + + + output + + + + + + + + Maximize + --maximize + + + true + + + Axis + --axis + + + 2 + + + OtsuPercentileThreshold + --otsuPercentileThreshold + + + 0.001 + + + ClosingSize + --closingSize + + + 7 + + + HeadSizeLimit + --headSizeLimit + + + 1000 + + + + HeadSizeEstimate + --headSizeEstimate + + + 0 + + + BackgroundValue + --backgroundValue + + + 0 + + + + + + GenerateDebugImages + --generateDebugImages + + + false + + + DebugDistanceImage + --debugDistanceImage + + + output + + + + DebugGridImage + --debugGridImage + + + output + + + + DebugAfterGridComputationsForegroundImage + --debugAfterGridComputationsForegroundImage + + + output + + + + DebugClippedImageMask + --debugClippedImageMask + + + output + + + + DebugTrimmedImage + --debugTrimmedImage + + + output + + + + diff --git a/tools/xmls/GaussianBlurImageFilter.xml b/tools/xmls/GaussianBlurImageFilter.xml new file mode 100644 index 0000000..a17733b --- /dev/null +++ b/tools/xmls/GaussianBlurImageFilter.xml @@ -0,0 +1,38 @@ + + + Filtering.Denoising + 3 + Gaussian Blur Image Filter + + 0.1.0.$Revision: 1.1 $(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/GaussianBlurImageFilter + + Julien Jomier (Kitware), Stephen Aylward (Kitware) + + + + sigma + sigma + s + + + 1.0 + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + diff --git a/tools/xmls/GenerateAverageLmkFile.xml b/tools/xmls/GenerateAverageLmkFile.xml new file mode 100644 index 0000000..1bc1186 --- /dev/null +++ b/tools/xmls/GenerateAverageLmkFile.xml @@ -0,0 +1,46 @@ + + + Testing + Average Fiducials + + This program gets several fcsv file each one contains several landmarks with the same name but slightly different coordinates. For EACH landmark we compute the average coordination. + + 5.2.0 + + + Ali Ghayoor + + + + + + Input/output parameters + + + inputLandmarkFiles + inputLandmarkFiles + + input + Input landmark files names (.fcsv or .wts). + + + + inputLandmarkListFile + inputLandmarkListFile + + input + A single file for a list of filenames one per line. + + + + + outputLandmarkFile + outputLandmarkFile + + output + Ouput landmark file name that includes average values for landmarks (.fcsv or .wts) + ./outputAverageLandmark.fcsv + + + + diff --git a/tools/xmls/GenerateEdgeMapImage.xml b/tools/xmls/GenerateEdgeMapImage.xml new file mode 100644 index 0000000..bc2f66d --- /dev/null +++ b/tools/xmls/GenerateEdgeMapImage.xml @@ -0,0 +1,73 @@ + + + SuperResolution + GenerateEdgeMapImage + Inverse of Maximum Gradient Image + 5.2.0 + + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Ali Ghayoor + + + + inputMRVolumes + inputMRVolumes + + input + Input image files names + + + inputMask + inputMask + Input mask file name. If set, image histogram percentiles will be calculated within the mask + input + + + outputMaximumGradientImage + outputMaximumGradientImage + output gradient image file name + output + + + outputEdgeMap + outputEdgeMap + output edgemap file name + output + + + lowerPercentileMatching + lowerPercentileMatching + + Map lower quantile and below to minOutputRange. It should be a value between zero and one. + 0.5 + + + upperPercentileMatching + upperPercentileMatching + + Map upper quantile and above to maxOutputRange. It should be a value between zero and one. + 0.95 + + + minimumOutputRange + minimumOutputRange + + Map lower quantile and below to minimum output range. It should be an epsilon number greater than zero. Default is 1. + 1 + + + maximumOutputRange + maximumOutputRange + + Map upper quantile and above to maximum output range. Default is 255 that is the maximum range of unsigned char. + 255 + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/GenerateLabelMapFromProbabilityMap.xml b/tools/xmls/GenerateLabelMapFromProbabilityMap.xml new file mode 100644 index 0000000..f61c8dd --- /dev/null +++ b/tools/xmls/GenerateLabelMapFromProbabilityMap.xml @@ -0,0 +1,44 @@ + + + Utilities.BRAINS + Label Map from Probability Images + + Given a list of probability maps for labels, create a discrete label map where only the highest probability region is used for the labeling. + + 5.2.0 + + + University of Iowa Department of Psychiatry, http:://www.psychiatry.uiowa.edu + + + + + + + inputVolumes + inputVolumes + The Input probaiblity images to be computed for lable maps + input + + + + + outputLabelVolume + outputLabelVolume + The Input binary image for region of interest + output + + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/GeneratePurePlugMask.xml b/tools/xmls/GeneratePurePlugMask.xml new file mode 100644 index 0000000..bc5f737 --- /dev/null +++ b/tools/xmls/GeneratePurePlugMask.xml @@ -0,0 +1,64 @@ + + + Classification + Pure Plugs Mask + + This program gets several modality image files and returns a binary mask that defines the pure plugs. + + 5.2.0 + + + Ali Ghayoor + + + + + + Input/output parameters + + + inputImageModalities + inputImageModalities + + input + Input image files names (.nii.gz or .nrrd) + + + + threshold + threshold + + input + threshold value to define class membership. + 0.2 + + + + numberOfSubSamples + numberOfSubSamples + + input + Number of continous index samples taken at each direction of lattice space for each plug volume. + 0,0,0 + + + + verbose + v + verbose + + false + Print out some debugging information. + + + + outputMaskFile + outputMaskFile + + output + Ouput binary mask that includes the pure plugs (.nrrd) + ./purePlugsBinaryMask.nrrd + + + + diff --git a/tools/xmls/GradientAnisotropicDiffusion.xml b/tools/xmls/GradientAnisotropicDiffusion.xml new file mode 100644 index 0000000..9eaad6c --- /dev/null +++ b/tools/xmls/GradientAnisotropicDiffusion.xml @@ -0,0 +1,81 @@ + + + Filtering.Denoising + 1 + Gradient Anisotropic Diffusion + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/GradientAnisotropicDiffusion + + Bill Lorensen (GE) + + + + + + conductance + --conductance + + + 1 + + 0 + 10 + .01 + + + + numberOfIterations + --iterations + + + 5 + + 1 + 30 + 1 + + + + timeStep + --timeStep + + + 0.0625 + + .001 + .0625 + .001 + + + + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + + + + + useImageSpacing + --useImageSpacing + ![CDATA[Take into account image spacing in the computation. It is advisable to turn this option on, especially when the pixel size is different in different dimensions. However, to produce results consistent with Slicer4.2 and earlier, this option should be turned off.]] + + true + + + diff --git a/tools/xmls/GrayscaleFillHoleImageFilter.xml b/tools/xmls/GrayscaleFillHoleImageFilter.xml new file mode 100644 index 0000000..b5e80bd --- /dev/null +++ b/tools/xmls/GrayscaleFillHoleImageFilter.xml @@ -0,0 +1,29 @@ + + + Filtering.Morphology + Grayscale Fill Hole Image Filter + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/GrayscaleFillHoleImageFilter + + Bill Lorensen (GE) + + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + diff --git a/tools/xmls/GrayscaleGrindPeakImageFilter.xml b/tools/xmls/GrayscaleGrindPeakImageFilter.xml new file mode 100644 index 0000000..3f42fe6 --- /dev/null +++ b/tools/xmls/GrayscaleGrindPeakImageFilter.xml @@ -0,0 +1,29 @@ + + + Filtering.Morphology + Grayscale Grind Peak Image Filter + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/GrayscaleGrindPeakImageFilter + + Bill Lorensen (GE) + + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + diff --git a/tools/xmls/GrayscaleModelMaker.xml b/tools/xmls/GrayscaleModelMaker.xml new file mode 100644 index 0000000..2482b41 --- /dev/null +++ b/tools/xmls/GrayscaleModelMaker.xml @@ -0,0 +1,97 @@ + + + Surface Models + Grayscale Model Maker + + 3.0 + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/GrayscaleModelMaker + slicer3 + Nicole Aucoin (SPL, BWH), Bill Lorensen (GE) + + + + + + InputVolume + + input + 0 + + + + OutputGeometry + + output + 1 + + + + + + + + Threshold + -t + --threshold + + + 100.0 + + + Name + + -n + --name + + Model + + + Smooth + + --smooth + + 15 + + 0 + 50 + 1 + + + + Decimate + + --decimate + + 0.25 + + 0.0 + 1.0 + + + + SplitNormals + + --splitnormals + + true + + + PointNormals + + --pointnormals + + true + + + + + + Debug + + + -d + --debug + false + + + diff --git a/tools/xmls/HistogramMatching.xml b/tools/xmls/HistogramMatching.xml new file mode 100644 index 0000000..c888e4e --- /dev/null +++ b/tools/xmls/HistogramMatching.xml @@ -0,0 +1,61 @@ + + + Filtering + Histogram Matching + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/HistogramMatching + + Bill Lorensen (GE) + + + + + + numberOfHistogramLevels + --numberOfHistogramLevels + + + 128 + + + numberOfMatchPoints + --numberOfMatchPoints + + + 10 + + + thresholdAtMeanIntensity + --threshold + + + false + + + + + + + inputVolume + + input + 0 + + + + referenceVolume + + input + 1 + + + + outputVolume + + output + 2 + + + + diff --git a/tools/xmls/ImageLabelCombine.xml b/tools/xmls/ImageLabelCombine.xml new file mode 100644 index 0000000..e263825 --- /dev/null +++ b/tools/xmls/ImageLabelCombine.xml @@ -0,0 +1,48 @@ + + + Filtering + Image Label Combine + + 0.1.0 + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ImageLabelCombine + + Alex Yarmarkovich (SPL, BWH) + + + + + + InputLabelMap_A + + input + 0 + + + + InputLabelMap_B + + input + 1 + + + + OutputLabelMap + + output + 2 + + + + + + + + FirstOverwrites + -f + --first_overwrites + + + true + + + diff --git a/tools/xmls/LabelMapSmoothing.xml b/tools/xmls/LabelMapSmoothing.xml new file mode 100644 index 0000000..396d0d1 --- /dev/null +++ b/tools/xmls/LabelMapSmoothing.xml @@ -0,0 +1,69 @@ + + + Surface Models + Label Map Smoothing + + 1.0 + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/LabelMapSmoothing + + Dirk Padfield (GE), Josh Cates (Utah), Ross Whitaker (Utah) + + + + + + labelToSmooth + --labelToSmooth + + + -1 + + + + + + + numberOfIterations + --numberOfIterations + + + 50 + + + maxRMSError + --maxRMSError + + + 0.01 + + + + + + + gaussianSigma + --gaussianSigma + + + 0.2 + + + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + diff --git a/tools/xmls/LandmarksCompare.xml b/tools/xmls/LandmarksCompare.xml new file mode 100644 index 0000000..ea95885 --- /dev/null +++ b/tools/xmls/LandmarksCompare.xml @@ -0,0 +1,53 @@ + + + Testing + Compare Fiducials + + Compares two .fcsv or .wts text files and verifies that they are identicle. Used for testing landmarks files. + + 5.2.0 + + + Ali Ghayoor + + + + + + Input/output parameters + + + inputLandmarkFile1 + --inputLandmarkFile1 + + input + First input landmark file (.fcsv or .wts) + + + + inputLandmarkFile2 + --inputLandmarkFile2 + + input + Second input landmark file. This can be a vector of baseline file names (.fcsv or .wts) + + + + weights + --weights + + input + Weights on the tolerance to accept ( tolerance / weights ) + + + + tolerance + tolerance + + The maximum error (in mm) allowed in each direction of a landmark + 0.0001 + + + + + diff --git a/tools/xmls/MaskScalarVolume.xml b/tools/xmls/MaskScalarVolume.xml new file mode 100644 index 0000000..a44e67a --- /dev/null +++ b/tools/xmls/MaskScalarVolume.xml @@ -0,0 +1,56 @@ + + + Filtering.Arithmetic + Mask Scalar Volume + + 0.1.0.$Revision: 8595 $(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/Mask + + Nicole Aucoin (SPL, BWH), Ron Kikinis (SPL, BWH) + + + + + + InputVolume + + input + 0 + + + + MaskVolume + + input + 1 + + + + OutputVolume + + output + 2 + + + + + + + + Label + + -l + --label + 1 + + + + Replace + + -r + --replace + 0 + + + + diff --git a/tools/xmls/MedianImageFilter.xml b/tools/xmls/MedianImageFilter.xml new file mode 100644 index 0000000..3b061e0 --- /dev/null +++ b/tools/xmls/MedianImageFilter.xml @@ -0,0 +1,41 @@ + + + Filtering.Denoising + 4 + Median Image Filter + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/MedianImageFilter + + Bill Lorensen (GE) + + + + + + neighborhood + --neighborhood + + + 1,1,1 + + + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + diff --git a/tools/xmls/MergeModels.xml b/tools/xmls/MergeModels.xml new file mode 100644 index 0000000..c206c14 --- /dev/null +++ b/tools/xmls/MergeModels.xml @@ -0,0 +1,36 @@ + + + Surface Models + Merge Models + + $Revision$ + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/MergeModels + + Nicole Aucoin (SPL, BWH), Ron Kikinis (SPL, BWH), Daniel Haehn (SPL, BWH, UPenn) + + + + + + Model1 + + input + 1 + + + + Model2 + + input + 2 + + + + ModelOutput + + output + 3 + + + + diff --git a/tools/xmls/ModelMaker.xml b/tools/xmls/ModelMaker.xml new file mode 100644 index 0000000..cf2046a --- /dev/null +++ b/tools/xmls/ModelMaker.xml @@ -0,0 +1,175 @@ + + + Surface Models + Model Maker + Models are imported into Slicer under a model hierarchy node in a MRML scene. The model colors are set by the color table associated with the input volume (these colours will only be visible if you load the model scene file).

IO:

Specify an Input Volume that is a segmented label map volume. Create a new Models hierarchy to provide a structure to contain the return models created from the input volume.

Create Multiple:

If you specify a list of Labels, it will over ride any start/end label settings.

If you click Generate All it will over ride the list of labels and any start/end label settings.

Model Maker Parameters:

You can set the number of smoothing iterations, target reduction in number of polygons (decimal percentage). Use 0 and 1 if you wish no smoothing nor decimation.
You can set the flags to split normals or generate point normals in this pane as well.
You can save a copy of the models after intermediate steps (marching cubes, smoothing, and decimation if not joint smoothing, otherwise just after decimation); these models are not saved in the mrml file, turn off deleting temporary files first in the python window:
slicer.modules.modelmaker.cliModuleLogic().DeleteTemporaryFilesOff()

]]>
+ 4.4 + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ModelMaker + slicer4 + Nicole Aucoin (SPL, BWH), Ron Kikinis (SPL, BWH), Bill Lorensen (GE) + + + + + + InputVolume + + input + 0 + + + + ColorTable + input + color + + + + ModelSceneFile + output + + --modelSceneFile + + models.mrml + + + + + + + Name + + -n + --name + + Model + + + GenerateAll + + --generateAll + + true + + + + + + + Labels + -l + -labels + + + + + StartLabel + + -s + --start + + -1 + + + EndLabel + + -e + --end + + -1 + + + SkipUnNamed + + --skipUnNamed + + true + + + JointSmoothing + + + -j + --jointsmooth + false + + + Smooth + + --smooth + + 10 + + 0 + 100 + + + + FilterType + + + --filtertype + Sinc + Sinc + Laplacian + + + Decimate + + --decimate + + 0.25 + + 0.0 + 1.0 + 0.01 + + + + SplitNormals + + --splitnormals + + true + + + PointNormals + + --pointnormals + + true + + + Pad + + --pad + + true + + + + + + ModelHierarchyFile + input + + --modelHierarchyFile + + + + SaveIntermediateModels + + saveIntermediateModels + Python Interactor) using the following command slicer.modules.modelmaker.cliModuleLogic().DeleteTemporaryFilesOff().]]> + false + + + debug + + + -d + --debug + false + + +
diff --git a/tools/xmls/ModelToLabelMap.xml b/tools/xmls/ModelToLabelMap.xml new file mode 100644 index 0000000..dbde6bc --- /dev/null +++ b/tools/xmls/ModelToLabelMap.xml @@ -0,0 +1,53 @@ + + + Surface Models + Model To LabelMap + + $Revision: 8643 $ + http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ModelToLabelMap + + Andras Lasso (PerkLab), Csaba Pinter (PerkLab), Nicole Aucoin (SPL, BWH), Xiaodong Tao (GE) + + + + + + labelValue + + + l + labelValue + 255 + + 0 + 255 + 1 + + + + + + + + InputVolume + + input + 0 + + + + surface + + input + 1 + + + + OutputVolume + + output + 2 + + + + diff --git a/tools/xmls/MultiplyScalarVolumes.xml b/tools/xmls/MultiplyScalarVolumes.xml new file mode 100644 index 0000000..c667b62 --- /dev/null +++ b/tools/xmls/MultiplyScalarVolumes.xml @@ -0,0 +1,51 @@ + + + Filtering.Arithmetic + Multiply Scalar Volumes + + 0.1.0.$Revision: 8595 $(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/Multiply + + Bill Lorensen (GE) + + + + + + inputVolume1 + + input + 0 + + + + inputVolume2 + + input + 1 + + + + outputVolume + + output + 2 + + + + + + + + order + + 1 + 0 + 1 + 2 + 3 + order + + + + diff --git a/tools/xmls/N4ITKBiasFieldCorrection.xml b/tools/xmls/N4ITKBiasFieldCorrection.xml new file mode 100644 index 0000000..ffdfb26 --- /dev/null +++ b/tools/xmls/N4ITKBiasFieldCorrection.xml @@ -0,0 +1,130 @@ + + + Filtering + N4ITK MRI Bias correction + 3 + + 9 + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/N4ITKBiasFieldCorrection + + Nick Tustison (UPenn), Andrey Fedorov (SPL, BWH), Ron Kikinis (SPL, BWH) + + + + + + inputImageName + + input + 0 + + + + maskimage + maskImageName + + input + + + + outputImageName + + output + 1 + + + + outputbiasfield + outputBiasFieldName + + output + + + + + + + initialMeshResolution + meshresolution + + + 1,1,1 + + + splineDistance + splinedistance + + + 0 + + + + bfFWHM + bffwhm + + + 0 + + + + + + + + + numberOfIterations + iterations + + + 50,40,30 + + + convergenceThreshold + convergencethreshold + + + 0.0001 + + + + bsplineOrder + bsplineorder + + + 3 + + + + shrinkFactor + shrinkfactor + + + 4 + + + + weightimage + weightImageName + + input + + + + + wienerFilterNoise + wienerfilternoise + + + 0 + + + + nHistogramBins + nhistogrambins + + + 0 + + + + diff --git a/tools/xmls/OrientScalarVolume.xml b/tools/xmls/OrientScalarVolume.xml new file mode 100644 index 0000000..d6db2ab --- /dev/null +++ b/tools/xmls/OrientScalarVolume.xml @@ -0,0 +1,92 @@ + + + Converters + Orient Scalar Volume + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/OrientImage + + Bill Lorensen (GE) + + + + + + inputVolume1 + + input + 0 + + + + outputVolume + + output + 1 + + + + + + + + orientation + o + orientation + + LPS + + Axial + Coronal + Sagittal + RIP + LIP + RSP + LSP + RIA + LIA + RSA + LSA + IRP + ILP + SRP + SLP + IRA + ILA + SRA + SLA + RPI + LPI + RAI + LAI + RPS + LPS + RAS + LAS + PRI + PLI + ARI + ALI + PRS + PLS + ARS + ALS + IPR + SPR + IAR + SAR + IPL + SPL + IAL + SAL + PIR + PSR + AIR + ASR + PIL + PSL + AIL + ASL + + + diff --git a/tools/xmls/PETStandardUptakeValueComputation.xml b/tools/xmls/PETStandardUptakeValueComputation.xml new file mode 100644 index 0000000..59bb6e9 --- /dev/null +++ b/tools/xmls/PETStandardUptakeValueComputation.xml @@ -0,0 +1,87 @@ + + + Quantification + PET Standard Uptake Value Computation + + 0.1.0.$Revision: 8595 $(alpha) + http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ComputeSUVBodyWeight + + Wendy Plesniak (SPL, BWH), Nicole Aucoin (SPL, BWH), Ron Kikinis (SPL, BWH) + + + + + + PETDICOMPath + + input + -p + --petDICOMPath + + + + PETVolume + + input + -v + --petVolume + + + + VOIVolume + + input + -l + --labelMap + + + + ColorTable + input + --color + + + + + + + + OutputCSV + + + -o + --csvFile + output +
+ + OutputLabel + + output + + + + OutputLabelValue + + output + + + + SUVMax + + output + + + + SUVMean + + output + + + + SUVMin + + output + + +
+
diff --git a/tools/xmls/PerformMetricTest.xml b/tools/xmls/PerformMetricTest.xml new file mode 100644 index 0000000..1064254 --- /dev/null +++ b/tools/xmls/PerformMetricTest.xml @@ -0,0 +1,75 @@ + + + Registration + Metric Test + + Compare Mattes/MSQ metric value for two input images and a possible input BSpline transform. + + 5.2.0 + A utility to compare metric value between two input images. + https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt + Ali Ghayoor + + + + + + Input parameters + + + input + inputBSplineTransform + + + Input transform that is use to warp moving image before metric comparison. + + inputBSplineTransform + + + + input + inputFixedImage + + inputFixedImage + + + + input + inputMovingImage + + inputMovingImage + + + + + + Metric type and input parameters. + + + metricType + metricType + + Comparison metric type + MMI + MMI + MSE + + + + numberOfSamples + numberOfSamples + + The number of voxels sampled for metric evaluation. + 0 + + + + numberOfHistogramBins + numberOfHistogramBins + + The number of historgram bins when MMI (Mattes) is metric type. + 50 + + + + diff --git a/tools/xmls/ProbeVolumeWithModel.xml b/tools/xmls/ProbeVolumeWithModel.xml new file mode 100644 index 0000000..f58d7d3 --- /dev/null +++ b/tools/xmls/ProbeVolumeWithModel.xml @@ -0,0 +1,36 @@ + + + Surface Models + Probe Volume With Model + + 0.1.0.$Revision: 1892 $(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ProbeVolumeWithModel + + Lauren O'Donnell (SPL, BWH) + + + + + + InputVolume + + input + 0 + + + + InputModel + + input + 1 + + + + OutputModel + + output + 2 + + + + diff --git a/tools/xmls/ResampleDTIVolume.xml b/tools/xmls/ResampleDTIVolume.xml new file mode 100644 index 0000000..cac399b --- /dev/null +++ b/tools/xmls/ResampleDTIVolume.xml @@ -0,0 +1,283 @@ + + + Diffusion.Utilities + Resample DTI Volume + + 1.0.2 + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ResampleDTI + + Francois Budin (UNC) + + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + referenceVolume + + input + -R + --Reference + + + + + + + + + transformationFile + + -f + --transformationFile + + input + + + deffield + + input + -H + --defField + + + + + typeOfField + --hfieldtype + + + displacement + h-Field + h-Field + + + + + + interpolationType + -i + --interpolation + + + linear + nn + ws + bs + linear + + + noMeasurementFrame + --noMeasurementFrame + + + false + + + correction + --correction + + + zero + none + abs + nearest + zero + + + + + + ppd + --transform_tensor_method + -T + + + PPD + FS + PPD + + + + + + + transformsOrder + --transform_order + + + input-to-output + output-to-input + output-to-input + + + notbulk + --notbulk + + + false + + + space + --spaceChange + + + false + + + + + + rotationPoint + -r + --rotation_point + + + 0,0,0 + + + centeredTransform + -c + --centered_transform + + + false + + + imageCenter + --image_center + + + input + output + input + + + inverseITKTransformation + -b + --Inverse_ITK_Transformation + + + false + + + + + + + outputImageSpacing + -s + --spacing + + + 0,0,0 + + + outputImageSize + -z + --size + + + 0,0,0 + + + outputImageOrigin + -O + --origin + + + + + + directionMatrix + -d + --direction_matrix + + + 0,0,0,0,0,0,0,0,0 + + + + + + + numberOfThread + -n + --number_of_thread + + + 0 + + + defaultPixelValue + -p + --default_pixel_value + + + 1e-10 + + + + + + + windowFunction + -W + --window_function + + + h + c + w + l + b + c + + + + + + + splineOrder + -o + --spline_order + + + 3 + + + + + + transformMatrix + -m + --transform_matrix + + + 1,0,0,0,1,0,0,0,1,0,0,0 + + + transformType + -t + --transform + + + rt + a + a + + + diff --git a/tools/xmls/ResampleScalarVectorDWIVolume.xml b/tools/xmls/ResampleScalarVectorDWIVolume.xml new file mode 100644 index 0000000..e748696 --- /dev/null +++ b/tools/xmls/ResampleScalarVectorDWIVolume.xml @@ -0,0 +1,253 @@ + + + Filtering + Diffusion.Utilities + Resample Scalar/Vector/DWI Volume + + 0.1 + http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ResampleScalarVectorDWIVolume + + Francois Budin (UNC) + + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + referenceVolume + + input + -R + --Reference + + + + + + + + + transformationFile + + -f + --transformationFile + + input + + + deffield + + input + -H + --defField + + + + + typeOfField + --hfieldtype + + + displacement + h-Field + h-Field + + + + + + interpolationType + -i + --interpolation + + + linear + nn + ws + bs + linear + + + + + + + transformsOrder + --transform_order + + + input-to-output + output-to-input + output-to-input + + + notbulk + --notbulk + + + false + + + space + --spaceChange + + + false + + + + + + rotationPoint + -r + --rotation_point + + + 0,0,0 + + + centeredTransform + -c + --centered_transform + + + false + + + imageCenter + --image_center + + + input + output + input + + + inverseITKTransformation + -b + --Inverse_ITK_Transformation + + + false + + + + + + + outputImageSpacing + -s + --spacing + + + 0,0,0 + + + outputImageSize + -z + --size + + + 0,0,0 + + + outputImageOrigin + -O + --origin + + + + + + directionMatrix + -d + --direction_matrix + + + 0,0,0,0,0,0,0,0,0 + + + + + + + numberOfThread + -n + --number_of_thread + + + 0 + + + defaultPixelValue + -p + --default_pixel_value + + + 0 + + + + + + + windowFunction + -W + --window_function + + + h + c + w + l + b + c + + + + + + + splineOrder + -o + --spline_order + + + 3 + + + + + + transformMatrix + -m + --transform_matrix + + + 1,0,0,0,1,0,0,0,1,0,0,0 + + + transformType + -t + --transform + + + rt + a + a + + + diff --git a/tools/xmls/ResampleScalarVolume.xml b/tools/xmls/ResampleScalarVolume.xml new file mode 100644 index 0000000..ff52035 --- /dev/null +++ b/tools/xmls/ResampleScalarVolume.xml @@ -0,0 +1,57 @@ + + + Legacy.Filtering + Resample Scalar Volume + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ResampleVolume + + Bill Lorensen (GE) + + + + + + outputPixelSpacing + -s + --spacing + + + 0,0,0 + + + interpolationType + -i + --interpolation + + + linear + linear + nearestNeighbor + bspline + hamming + cosine + welch + lanczos + blackman + + + + + + + InputVolume + 0 + + + input + + + OutputVolume + 1 + + + output + + + diff --git a/tools/xmls/RobustStatisticsSegmenter.xml b/tools/xmls/RobustStatisticsSegmenter.xml new file mode 100644 index 0000000..f90c728 --- /dev/null +++ b/tools/xmls/RobustStatisticsSegmenter.xml @@ -0,0 +1,106 @@ + + + Segmentation.Specialized + Robust Statistics Segmenter + + 1.0 + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/RobustStatisticsSegmenter + + Yi Gao (gatech), Allen Tannenbaum (gatech), Ron Kikinis (SPL, BWH) + + + + + + expectedVolume + expectedVolume + v + + + 50 + + 0.0 + 1000000 + 100 + + + + + + + + intensityHomogeneity + intensityHomogeneity + + + 0.6 + + 0.0 + 1.0 + 0.1 + + + + curvatureWeight + curvatureWeight + c + + + 0.5 + + 0.0 + 1.0 + 0.1 + + + + labelValue + labelValue + + + 1 + + 1 + 1000 + 1 + + + + maxRunningTime + maxRunningTime + + + 10 + + 0 + 60 + 1 + + + + + + + + originalImageFileName + + input + 0 + + + + labelImageFileName + + input + 1 + + + + segmentedImageFileName + + output + 2 + + + + diff --git a/tools/xmls/SimpleRegionGrowingSegmentation.xml b/tools/xmls/SimpleRegionGrowingSegmentation.xml new file mode 100644 index 0000000..6c5f207 --- /dev/null +++ b/tools/xmls/SimpleRegionGrowingSegmentation.xml @@ -0,0 +1,104 @@ + + + Segmentation + Simple Region Growing Segmentation + + 0.1.0.$Revision$(alpha) + http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/SimpleRegionGrowingSegmentation + + Jim Miller (GE) + + + + + + smoothingIterations + + --smoothingIterations + + 5 + + + timestep + + --timestep + + 0.0625 + + 0.001 + 1 + 0.0001 + + + + + + + + iterations + --iterations + + + 5 + + 0 + 100 + + + + multiplier + --multiplier + + + 2.5 + + 0 + 10 + 0.01 + + + + neighborhood + --neighborhood + + + 1 + + + labelvalue + --labelvalue + + + 2 + + 1 + 255 + + + + seed + + --seed + + 0,0,0 + + + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + diff --git a/tools/xmls/SubtractScalarVolumes.xml b/tools/xmls/SubtractScalarVolumes.xml new file mode 100644 index 0000000..4d83696 --- /dev/null +++ b/tools/xmls/SubtractScalarVolumes.xml @@ -0,0 +1,51 @@ + + + Filtering.Arithmetic + Subtract Scalar Volumes + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/Subtract + + Bill Lorensen (GE) + + + + + + inputVolume1 + + input + 0 + + + + inputVolume2 + + input + 1 + + + + outputVolume + + output + 2 + + + + + + + + order + + 1 + 0 + 1 + 2 + 3 + order + + + + diff --git a/tools/xmls/TestGridTransformRegistration.xml b/tools/xmls/TestGridTransformRegistration.xml new file mode 100644 index 0000000..f3765bc --- /dev/null +++ b/tools/xmls/TestGridTransformRegistration.xml @@ -0,0 +1,56 @@ + + + Legacy.Registration + Test GridTransform registration + 9 + + 0.1.0.$Revision: 6760 $(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/TestGridTransformRegistration + + Yinglin Lee (SPL, BWH) + + + + + + gridSize + g + gridSize + + + 5 + + 3 + 20 + 1 + + + + + + + + OutputTransform + outputtransform + + + output + + + + + FixedImageFileName + + input + 0 + + + + MovingImageFileName + + input + 1 + + + + diff --git a/tools/xmls/ThresholdScalarVolume.xml b/tools/xmls/ThresholdScalarVolume.xml new file mode 100644 index 0000000..00d55af --- /dev/null +++ b/tools/xmls/ThresholdScalarVolume.xml @@ -0,0 +1,82 @@ + + + Filtering + Threshold Scalar Volume + Threshold an image.

Set image values to a user-specified outside value if they are below, above, or between simple threshold values.

ThresholdAbove: The values greater than or equal to the threshold value are set to OutsideValue.

ThresholdBelow: The values less than or equal to the threshold value are set to OutsideValue.

ThresholdOutside: The values outside the range Lower-Upper are set to OutsideValue.

]]>
+ 0.1.0.$Revision: 2104 $(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/Threshold + + Nicole Aucoin (SPL, BWH), Ron Kikinis (SPL, BWH), Julien Finet (Kitware) + + + + + + InputVolume + + input + 0 + + + + OutputVolume + + output + 1 + + + + + + + ThresholdType + + + --thresholdtype + Outside + Below + Above + Outside + + + ThresholdValue + + -t + --threshold + + 128 + + + Lower + + -l + --lower + + 1 + + + Upper + + -u + --upper + + 200 + + + OutsideValue + + -v + --outsidevalue + + 0 + + + Negate + + -n + --negate + + false + + +
diff --git a/tools/xmls/VotingBinaryHoleFillingImageFilter.xml b/tools/xmls/VotingBinaryHoleFillingImageFilter.xml new file mode 100644 index 0000000..73b2139 --- /dev/null +++ b/tools/xmls/VotingBinaryHoleFillingImageFilter.xml @@ -0,0 +1,61 @@ + + + Filtering + Voting Binary Hole Filling Image Filter + + 0.1.0.$Revision$(alpha) + http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/VotingBinaryHoleFillingImageFilter + + Bill Lorensen (GE) + + + + + + radius + --radius + + + 1,1,1 + + + majorityThreshold + --majorityThreshold + + + 1 + + + background + --background + + + 0 + + + foreground + --foreground + + + 255 + + + + + + + inputVolume + + input + 0 + + + + outputVolume + + output + 1 + + + + diff --git a/tools/xmls/compareTractInclusion.xml b/tools/xmls/compareTractInclusion.xml new file mode 100644 index 0000000..1047d14 --- /dev/null +++ b/tools/xmls/compareTractInclusion.xml @@ -0,0 +1,95 @@ + + + Diffusion.GTRACT + Compare Tracts + + This program will halt with a status code indicating whether a test tract is nearly enough included in a standard tract in the sense that every fiber in the test tract has a low enough sum of squares distance to some fiber in the standard tract modulo spline resampling of every fiber to a fixed number of points. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for fiber tract comparison + + + testFiber + testFiber + Required: test fiber tract file name + + input + + + + standardFiber + standardFiber + Required: standard fiber tract file name + + input + + + + + + + Output file from averaging fibers in a fiber tract + + + closeness + closeness + Closeness of every test fiber to some fiber in the standard tract, computed as a sum of squares of spatial differences of standard points + + 100 + input + + + + numberOfPoints + numberOfPoints + Number of points in comparison fiber pairs + + 100 + input + + + + testForBijection + testForBijection + Flag to apply the closeness criterion both ways + + 0 + input + + + + testForFiberCardinality + testForFiberCardinality + Flag to require the same number of fibers in both tracts + + 0 + input + + + + writeXMLPolyDataFile + writeXMLPolyDataFile + Flag to make use of XML files when reading and writing vtkPolyData. + + 0 + input + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/extractNrrdVectorIndex.xml b/tools/xmls/extractNrrdVectorIndex.xml new file mode 100644 index 0000000..ffe4dd7 --- /dev/null +++ b/tools/xmls/extractNrrdVectorIndex.xml @@ -0,0 +1,71 @@ + + + Diffusion.GTRACT + Extract Nrrd Index + + This program will extract a 3D image (single vector) from a vector 3D image at a given vector index. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying vector extraction + + + inputVolume + inputVolume + Required: input file containing the vector that will be extracted + + input + + + + vectorIndex + vectorIndex + Index in the vector image to extract + + 0 + input + + + + setImageOrientation + setImageOrientation + Sets the image orientation of the extracted vector (Axial, Coronal, Sagittal) + + AsAcquired + AsAcquired + Axial + Coronal + Sagittal + input + + + + + + Output file containing the extracted vector in NRRD file form + + + outputVolume + outputVolume + Required: name of output NRRD file containing the vector image at the given index + + output + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/fcsv_to_hdf5.xml b/tools/xmls/fcsv_to_hdf5.xml new file mode 100644 index 0000000..337f627 --- /dev/null +++ b/tools/xmls/fcsv_to_hdf5.xml @@ -0,0 +1,61 @@ + + + Utilities.BRAINS + fcsv_to_hdf5 (BRAINS) + Convert a collection of fcsv files to a HDF5 format file + + + Version + --versionID + + Current version ID. It should be match with the version of BCD that will be using the output model file + + v1.0 + + + outputFile + + --landmarksInformationFile + + + name of HDF5 file to write matrices into + + output + + + landmarkTypesFile + + --landmarkTypesList + + + file containing list of landmark types + + input + + + modelFile + + o + --modelFile + + + name of HDF5 file containing BRAINSConstellationDetector Model file (LLSMatrices, LLSMeans and LLSSearchRadii) + + output + + + landmarkGlobPattern + landmarkGlobPattern + Glob pattern to select fcsv files + + *.fcsv + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractAnisotropyMap.xml b/tools/xmls/gtractAnisotropyMap.xml new file mode 100644 index 0000000..60d587b --- /dev/null +++ b/tools/xmls/gtractAnisotropyMap.xml @@ -0,0 +1,66 @@ + + + Diffusion.GTRACT + Anisotropy Map + + This program will generate a scalar map of anisotropy, given a tensor representation. Anisotropy images are used for fiber tracking, but the anisotropy scalars are not defined along the path. Instead, the tensor representation is included as point data allowing all of these metrics to be computed using only the fiber tract point data. The images can be saved in any ITK supported format, but it is suggested that you use an image format that supports the definition of the image origin. This includes NRRD, NifTI, and Meta formats. These images can also be used for scalar analysis including regional anisotropy measures or VBM style analysis. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the diffusion tensor study + + + inputTensorVolume + inputTensorVolume + Required: input file containing the diffusion tensor image + + input + + + + anisotropyType + anisotropyType + Anisotropy Mapping Type: ADC, FA, RA, VR, AD, RD, LI + + ADC + ADC + FA + RA + VR + AD + RD + LI + input + + + + + + Output file from conversion from vector image to vcl_single NRRD + + + outputVolume + outputVolume + Required: name of output NRRD file containing the selected kind of anisotropy scalar. + + output + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + + diff --git a/tools/xmls/gtractAverageBvalues.xml b/tools/xmls/gtractAverageBvalues.xml new file mode 100644 index 0000000..5ce507b --- /dev/null +++ b/tools/xmls/gtractAverageBvalues.xml @@ -0,0 +1,63 @@ + + + Diffusion.GTRACT + Average B-Values + + This program will directly average together the baseline gradients (b value equals 0) within a DWI scan. This is usually used after gtractCoregBvalues. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying direct averaging of baseline gradients within a DWI scan + + + inputVolume + inputVolume + Required: input image file name containing multiple baseline gradients to average + + input + + + + outputVolume + outputVolume + Required: name of output NRRD file containing directly averaged baseline images + + output + + + + directionsTolerance + directionsTolerance + Tolerance for matching identical gradient direction pairs + + 0.01 + input + + + + averageB0only + averageB0only + Average only baseline gradients. All other gradient directions are not averaged, but retained in the outputVolume + + 0 + input + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractClipAnisotropy.xml b/tools/xmls/gtractClipAnisotropy.xml new file mode 100644 index 0000000..7dab80a --- /dev/null +++ b/tools/xmls/gtractClipAnisotropy.xml @@ -0,0 +1,63 @@ + + + Diffusion.GTRACT + Clip Anisotropy + + This program will zero the first and/or last slice of an anisotropy image, creating a clipped anisotropy image. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for clipping an anisotropy image + + + inputVolume + inputVolume + Required: input image file name + + input + + + + outputVolume + outputVolume + Required: name of output NRRD file containing the clipped anisotropy image + + output + + + + clipFirstSlice + clipFirstSlice + Clip the first slice of the anisotropy image + + 0 + input + + + + clipLastSlice + clipLastSlice + Clip the last slice of the anisotropy image + + 0 + input + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractCoRegAnatomy.xml b/tools/xmls/gtractCoRegAnatomy.xml new file mode 100644 index 0000000..f0d230f --- /dev/null +++ b/tools/xmls/gtractCoRegAnatomy.xml @@ -0,0 +1,239 @@ + + + Diffusion.GTRACT + Coregister B0 to Anatomy B-Spline + + This program will register a Nrrd diffusion weighted 4D vector image to a fixed anatomical image. Two registration methods are supported for alignment with anatomical images: Rigid and B-Spline. The rigid registration performs a rigid body registration with the anatomical images and should be done as well to initialize the B-Spline transform. The B-SPline transform is the deformable transform, where the user can control the amount of deformation based on the number of control points as well as the maximum distance that these points can move. The B-Spline registration places a low dimensional grid in the image, which is deformed. This allows for some susceptibility related distortions to be removed from the diffusion weighted images. In general the amount of motion in the slice selection and read-out directions direction should be kept low. The distortion is in the phase encoding direction in the images. It is recommended that skull stripped (i.e. image containing only brain with skull removed) images shoud be used for image co-registration with the B-Spline transform. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the Nrrd vector image to fit to the anatomical image + + + inputVolume + inputVolume + Required: input vector image file name. It is recommended that the input volume is the skull stripped baseline image of the DWI scan. + + input + + + + inputAnatomicalVolume + inputAnatomicalVolume + Required: input anatomical image file name. It is recommended that that the input anatomical image has been skull stripped and has the same orientation as the DWI scan. + + input + + + + vectorIndex + vectorIndex + Vector image index in the moving image (within the DWI) to be used for registration. + + 0 + input + + + + inputRigidTransform + inputRigidTransform + Required (for B-Spline type co-registration): input rigid transform file name. Used as a starting point for the anatomical B-Spline registration. + + input + + + + + + Output file from rigid registrations + + + outputTransformName + outputTransformName + Required: filename for the fit transform. + + output + + + + + + + Input registration parameters controlling the fit + + + transformType + transformType + Transform Type: Rigid|Bspline + + Rigid + Rigid + Bspline + + + + numberOfIterations + numberOfIterations + Number of iterations in the selected 3D fit + + 1000 + input + + + + gridSize + gridSize + Number of grid subdivisions in all 3 directions + + 12,4,12 + input + + + + borderSize + borderSize + Size of border + + 3 + input + + + + numberOfHistogramBins + numberOfHistogramBins + Number of histogram bins + + 50 + input + + + + spatialScale + spatialScale + Scales the number of voxels in the image by this value to specify the number of voxels used in the registration + + 100 + input + + + + convergence + convergence + Convergence Factor + + 10000000 + input + + + + gradientTolerance + gradientTolerance + Gradient Tolerance + + 0.0001 + input + + + + maxBSplineDisplacement + maxBSplineDisplacement + Sets the maximum allowed displacements in image physical coordinates for BSpline control grid along each axis. A value of 0.0 indicates that the problem should be unbounded. NOTE: This only constrains the BSpline portion, and does not limit the displacement from the associated bulk transform. This can lead to a substantial reduction in computation time in the BSpline optimizer. + + 0.0 + + + + maximumStepSize + maximumStepSize + Maximum permitted step size to move in the selected 3D fit + + 0.2 + input + + + + minimumStepSize + minimumStepSize + Minimum required step size to move in the selected 3D fit without converging -- decrease this to make the fit more exacting + + 0.0001 + input + + + + translationScale + translationScale + How much to scale up changes in position compared to unit rotational changes in radians -- decrease this to put more translation in the fit + + 1000.0 + input + + + + relaxationFactor + relaxationFactor + Fraction of gradient from Jacobian to attempt to move in the selected 3D fit + + 0.5 + input + + + + numberOfSamples + numberOfSamples + The number of voxels sampled for mutual information computation. Increase this for a slower, more careful fit. NOTE that it is suggested to use samplingPercentage instead of this option. However, if set, it overwrites the samplingPercentage option. + + 100000 + input + + + + samplingPercentage + samplingPercentage + + This is a number in (0.0,1.0] interval that shows the percentage of the input fixed image voxels that are sampled for mutual information computation. Increase this for a slower, more careful fit. You can also limit the sampling focus with ROI masks and ROIAUTO mask generation. The default is to use approximately 5% of voxels (for backwards compatibility 5% ~= 500000/(256*256*256)). Typical values range from 1% for low detail images to 20% for high detail images. + 0.05 + + + + useMomentsAlign + useMomentsAlign + + MomentsAlign assumes that the center of mass of the images represent similar structures. Perform a MomentsAlign registration as part of the sequential registration steps. This option MUST come first, and CAN NOT be used with either CenterOfHeadLAlign, GeometryAlign, or initialTransform file. This family of options superceeds the use of transformType if any of them are set. + false + + + + useGeometryAlign + useGeometryAlign + + GeometryAlign on assumes that the center of the voxel lattice of the images represent similar structures. Perform a GeometryCenterAlign registration as part of the sequential registration steps. This option MUST come first, and CAN NOT be used with either MomentsAlign, CenterOfHeadAlign, or initialTransform file. This family of options superceeds the use of transformType if any of them are set. + false + + + + useCenterOfHeadAlign + useCenterOfHeadAlign + + CenterOfHeadAlign attempts to find a hemisphere full of foreground voxels from the superior direction as an estimate of where the center of a head shape would be to drive a center of mass estimate. Perform a CenterOfHeadAlign registration as part of the sequential registration steps. This option MUST come first, and CAN NOT be used with either MomentsAlign, GeometryAlign, or initialTransform file. This family of options superceeds the use of transformType if any of them are set. + false + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractCoRegAnatomyBspline.xml b/tools/xmls/gtractCoRegAnatomyBspline.xml new file mode 100644 index 0000000..1af21c8 --- /dev/null +++ b/tools/xmls/gtractCoRegAnatomyBspline.xml @@ -0,0 +1,153 @@ + + + Diffusion.GTRACT + Coregister B0 to Anatomy B-Spline + + This program will register a NRRD diffusion weighted 4D vector image to a fixed anatomical image to produce a Bspline fit. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the NRRD vector image to fit to the anatomical image + + + inputVolume + inputVolume + Required: input vector image file name. It is recommended that the input volume is the skull stripped baseline image of the DWI scan. + + input + + + + inputAnatomicalVolume + inputAnatomicalVolume + Required: input anatomical image file name. It is recommended that that the input anatomical image has been skull stripped and has the same orientation as the DWI scan. + + input + + + + vectorIndex + vectorIndex + Vector image index in the moving image (within the DWI) to be used for registration. + + 0 + input + + + + inputRigidTransform + inputRigidTransform + Required (for B-Spline type co-registration): input rigid transform file name. Used as a starting point for the anatomical B-Spline registration. + + input + + + + + + + Output file from rigid registrations + + + outputBsplineTransform + outputBsplineTransform + Required: filename for the B-Spline fit transform. + + output + + + + + + + Input registration parameters controlling the fit + + + numberOfIterations + numberOfIterations + Number of iterations in the selected 3D fit + + 1000 + input + + + + gridSize + gridSize + Number of grid subdivisions in all 3 directions + + 12,4,12 + input + + + + borderSize + borderSize + Size of border + + 3 + input + + + + numberOfHistogramBins + numberOfHistogramBins + Number of histogram bins + + 50 + input + + + + spatialScale + spatialScale + Scales the number of voxels in the image by this value to specify the number of voxels used in the registration + + 100 + input + + + + convergence + convergence + Convergence Factor + + 10000000 + input + + + + gradientTolerance + gradientTolerance + Gradient Tolerance + + 0.0001 + input + + + + maxBSplineDisplacement + maxBSplineDisplacement + Sets the maximum allowed displacements in image physical coordinates for BSpline control grid along each axis. A value of 0.0 indicates that the problem should be unbounded. NOTE: This only constrains the BSpline portion, and does not limit the displacement from the associated bulk transform. This can lead to a substantial reduction in computation time in the BSpline optimizer. + + 0.0 + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractCoRegAnatomyRigid.xml b/tools/xmls/gtractCoRegAnatomyRigid.xml new file mode 100644 index 0000000..06c0f56 --- /dev/null +++ b/tools/xmls/gtractCoRegAnatomyRigid.xml @@ -0,0 +1,145 @@ + + + Diffusion.GTRACT + Coregister B0 to Anatomy Rigid + + This program will register a NRRD diffusion weighted 4D vector image to a fixed anatomical image to produce a rigid fit. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the NRRD vector image to fit to the anatomical image + + + inputVolume + inputVolume + Required: input vector image file name. It is recommended that the input volume is the skull stripped baseline image of the DWI scan. + + input + + + + inputAnatomicalVolume + inputAnatomicalVolume + Required: input anatomical image file name. It is recommended that that the input anatomical image has been skull stripped and has the same orientation as the DWI scan. + + input + + + + vectorIndex + vectorIndex + Vector image index in the moving image (within the DWI) to be used for registration. + + 0 + input + + + + + + + Output file from rigid registrations + + + outputRigidTransform + outputRigidTransform + Required: filename for the rigid fit transform. + + output + + + + + + + Input registration parameters controlling the fit + + + numberOfIterations + numberOfIterations + Number of iterations in the selected 3D fit + + 1000 + input + + + + numberOfSamples + numberOfSamples + The number of voxels sampled for mutual information computation. Increase this for a slower, more careful fit. NOTE that it is suggested to use samplingPercentage instead of this option. However, if set, it overwrites the samplingPercentage option. + + 100000 + input + + + + samplingPercentage + samplingPercentage + + This is a number in (0.0,1.0] interval that shows the percentage of the input fixed image voxels that are sampled for mutual information computation. Increase this for a slower, more careful fit. You can also limit the sampling focus with ROI masks and ROIAUTO mask generation. The default is to use approximately 5% of voxels (for backwards compatibility 5% ~= 500000/(256*256*256)). Typical values range from 1% for low detail images to 20% for high detail images. + 0.05 + + + + + initialRotationAxis + initialRotationAxis + Axis for the initial rotation angle: 0, 1, 2 mean x, y, z, respectively. + + 0 + input + + + + initialRotationAngle + initialRotationAngle + Angle to rotate about the initial rotation angle (Degrees) + + 0.0 + input + + + + relaxationFactor + relaxationFactor + Fraction of gradient from Jacobian to attempt to move in the selected 3D fit + + 0.5 + input + + + + maximumStepSize + maximumStepSize + Maximum permitted step size to move in the selected 3D fit + + 0.2 + input + + + + minimumStepSize + minimumStepSize + Minimum required step size to move in the selected 3D fit without converging -- decrease this to make the fit more exacting + + 0.0001 + input + + + + spatialScale + spatialScale + How much to scale up changes in position compared to unit rotational changes in radians -- decrease this to put more translation in the fit + + 1000.0 + input + + + + diff --git a/tools/xmls/gtractConcatDwi.xml b/tools/xmls/gtractConcatDwi.xml new file mode 100644 index 0000000..c43f65e --- /dev/null +++ b/tools/xmls/gtractConcatDwi.xml @@ -0,0 +1,56 @@ + + + Diffusion.GTRACT + Concat DWI Images + + This program will concatenate two DTI runs together. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the diffusion weighted imaging studies to run together + + + inputVolume + inputVolume + Required: input file containing the first diffusion weighted image + + input + + + ignoreOrigins + ignoreOrigins + If image origins are different force all images to origin of first image + false + + + + + + Output file from combining two diffusion weighted images + + + outputVolume + outputVolume + Required: name of output NRRD file containing the combined diffusion weighted images. + + output + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractCopyImageOrientation.xml b/tools/xmls/gtractCopyImageOrientation.xml new file mode 100644 index 0000000..7d68413 --- /dev/null +++ b/tools/xmls/gtractCopyImageOrientation.xml @@ -0,0 +1,59 @@ + + + Diffusion.GTRACT + Copy Image Orientation + + This program will copy the orientation from the reference image into the moving image. Currently, the registration process requires that the diffusion weighted images and the anatomical images have the same image orientation (i.e. Axial, Coronal, Sagittal). It is suggested that you copy the image orientation from the diffusion weighted images and apply this to the anatomical image. This image can be subsequently removed after the registration step is complete. We anticipate that this limitation will be removed in future versions of the registration programs. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the input image and the reference image to clone the orientation of the reference image into the input image. + + + inputVolume + inputVolume + Required: input file containing the signed short image to reorient without resampling. + + input + + + + inputReferenceVolume + inputReferenceVolume + Required: input file containing orietation that will be cloned. + + input + + + + + + Output file from resampling the input specimen image + + + outputVolume + outputVolume + Required: name of output NRRD or Nifti file containing the reoriented image in reference image space. + + output + + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractCoregBvalues.xml b/tools/xmls/gtractCoregBvalues.xml new file mode 100644 index 0000000..0dc07d7 --- /dev/null +++ b/tools/xmls/gtractCoregBvalues.xml @@ -0,0 +1,171 @@ + + + Diffusion.GTRACT + Coregister B-Values + + This step should be performed after converting DWI scans from DICOM to NRRD format. This program will register all gradients in a NRRD diffusion weighted 4D vector image (moving image) to a specified index in a fixed image. It also supports co-registration with a T2 weighted image or field map in the same plane as the DWI data. The fixed image for the registration should be a b0 image. A mutual information metric cost function is used for the registration because of the differences in signal intensity as a result of the diffusion gradients. The full affine allows the registration procedure to correct for eddy current distortions that may exist in the data. If the eddyCurrentCorrection is enabled, relaxationFactor (0.25) and maximumStepSize (0.1) should be adjusted. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the diffusion tensor images to fit + + + movingVolume + movingVolume + Required: input moving image file name. In order to register gradients within a scan to its first gradient, set the movingVolume and fixedVolume as the same image. + + input + + + + fixedVolume + fixedVolume + Required: input fixed image file name. It is recommended that this image should either contain or be a b0 image. + + input + + + + fixedVolumeIndex + fixedVolumeIndex + Index in the fixed image for registration. It is recommended that this image should be a b0 image. + + 0 + input + + + + + + + Output file from gtractCoregBvalues + + + outputVolume + outputVolume + Required: name of output NRRD file containing moving images individually resampled and fit to the specified fixed image index. + + output + + + + outputTransform + outputTransform + Registration 3D transforms concatenated in a single output file. There are no tools that can use this, but can be used for debugging purposes. + + output + + + + + + + Input registration parameters controlling the fit + + + eddyCurrentCorrection + eddyCurrentCorrection + Flag to perform eddy current corection in addition to motion correction (recommended) + + 0 + input + + + + numberOfIterations + numberOfIterations + Number of iterations in each 3D fit + + 1000 + input + + + + numberOfSpatialSamples + numberOfSpatialSamples + The number of voxels sampled for mutual information computation. Increase this for a slower, more careful fit. NOTE that it is suggested to use samplingPercentage instead of this option. However, if set, it overwrites the samplingPercentage option. + + 100000 + input + + + samplingPercentage + samplingPercentage + + This is a number in (0.0,1.0] interval that shows the percentage of the input fixed image voxels that are sampled for mutual information computation. Increase this for a slower, more careful fit. You can also limit the sampling focus with ROI masks and ROIAUTO mask generation. The default is to use approximately 5% of voxels (for backwards compatibility 5% ~= 500000/(256*256*256)). Typical values range from 1% for low detail images to 20% for high detail images. + 0.05 + + + + + relaxationFactor + relaxationFactor + Fraction of gradient from Jacobian to attempt to move in each 3D fit step (adjust when eddyCurrentCorrection is enabled; suggested value = 0.25) + + 0.5 + input + + + + maximumStepSize + maximumStepSize + Maximum permitted step size to move in each 3D fit step (adjust when eddyCurrentCorrection is enabled; suggested value = 0.1) + + 0.2 + input + + + + minimumStepSize + minimumStepSize + Minimum required step size to move in each 3D fit step without converging -- decrease this to make the fit more exacting + + 0.0001 + input + + + + spatialScale + spatialScale + How much to scale up changes in position compared to unit rotational changes in radians -- decrease this to put more rotation in the fit + + 1000.0 + input + + + + registerB0Only + registerB0Only + Register the B0 images only + + 0 + input + + + + debugLevel + + Display debug messages, and produce debug intermediate results. 0=OFF, 1=Minimal, 10=Maximum debugging. + --debugLevel + 0 + + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractCostFastMarching.xml b/tools/xmls/gtractCostFastMarching.xml new file mode 100644 index 0000000..2dbd06b --- /dev/null +++ b/tools/xmls/gtractCostFastMarching.xml @@ -0,0 +1,115 @@ + + + Diffusion.GTRACT + Cost Fast Marching + + This program will use a fast marching fiber tracking algorithm to identify fiber tracts from a tensor image. This program is the first portion of the algorithm. The user must first run gtractFastMarchingTracking to generate the actual fiber tracts. This algorithm is roughly based on the work by G. Parker et al. from IEEE Transactions On Medical Imaging, 21(5): 505-512, 2002. An additional feature of including anisotropy into the vcl_cost function calculation is included. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. The original code here was developed by Daisy Espino. + + + + Parameters for specifying the diffusion tensor image set + + + inputTensorVolume + inputTensorVolume + Required: input tensor image file name + + input + + + + inputAnisotropyVolume + inputAnisotropyVolume + Required: input anisotropy image file name + + input + + + + inputStartingSeedsLabelMapVolume + inputStartingSeedsLabelMapVolume + Required: input starting seeds LabelMap image file name + + input + + + + startingSeedsLabel + startingSeedsLabel + Label value for Starting Seeds + + 1 + input + + + + + + + Output files generated by the fast marching vcl_cost function + + + outputCostVolume + outputCostVolume + Output vcl_cost image + + output + + + + outputSpeedVolume + outputSpeedVolume + Output speed image + + output + + + + + + + Input parameters controlling the Fast Marching Cost Function + + + anisotropyWeight + anisotropyWeight + Anisotropy weight used for vcl_cost function calculations + + 0.0 + input + + + + stoppingValue + stoppingValue + Terminiating value for vcl_cost function estimation + + 800.0 + input + + + + seedThreshold + seedThreshold + Anisotropy threshold used for seed selection + + 0.3 + input + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractCreateGuideFiber.xml b/tools/xmls/gtractCreateGuideFiber.xml new file mode 100644 index 0000000..e76e596 --- /dev/null +++ b/tools/xmls/gtractCreateGuideFiber.xml @@ -0,0 +1,69 @@ + + + Diffusion.GTRACT + Create Guide Fiber + + This program will create a guide fiber by averaging fibers from a previously generated tract. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for guide fiber generation + + + inputFiber + inputFiber + Required: input fiber tract file name + + input + + + + numberOfPoints + numberOfPoints + Number of points in output guide fiber + + 100 + input + + + + + + + Output file from averaging fibers in a fiber tract + + + outputFiber + outputFiber + Required: output guide fiber file name + + output + + + + writeXMLPolyDataFile + writeXMLPolyDataFile + Flag to make use of XML files when reading and writing vtkPolyData. + + 0 + input + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractFastMarchingTracking.xml b/tools/xmls/gtractFastMarchingTracking.xml new file mode 100644 index 0000000..a1d2f17 --- /dev/null +++ b/tools/xmls/gtractFastMarchingTracking.xml @@ -0,0 +1,154 @@ + + + Diffusion.GTRACT + Fast Marching Tracking + + This program will use a fast marching fiber tracking algorithm to identify fiber tracts from a tensor image. This program is the second portion of the algorithm. The user must first run gtractCostFastMarching to generate the vcl_cost image. The second step of the algorithm implemented here is a gradient descent soplution from the defined ending region back to the seed points specified in gtractCostFastMarching. This algorithm is roughly based on the work by G. Parker et al. from IEEE Transactions On Medical Imaging, 21(5): 505-512, 2002. An additional feature of including anisotropy into the vcl_cost function calculation is included. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. The original code here was developed by Daisy Espino. + + + + Parameters for specifying the diffusion tensor image set + + + inputTensorVolume + inputTensorVolume + Required: input tensor image file name + + input + + + + inputAnisotropyVolume + inputAnisotropyVolume + Required: input anisotropy image file name + + input + + + + inputCostVolume + inputCostVolume + Required: input vcl_cost image file name + + input + + + + inputStartingSeedsLabelMapVolume + inputStartingSeedsLabelMapVolume + Required: input starting seeds LabelMap image file name + + input + + + + startingSeedsLabel + startingSeedsLabel + Label value for Starting Seeds + + 1 + input + + + + + + + Output file in which to store tract lines + + + outputTract + outputTract + Required: name of output vtkPolydata file containing tract lines and the point data collected along them. + + output + + + + writeXMLPolyDataFile + writeXMLPolyDataFile + Flag to make use of the XML format for vtkPolyData fiber tracts. + + 0 + output + + + + + + + Input parameters controlling the Fast Marching Cost Function + + + numberOfIterations + numberOfIterations + Number of iterations used for the optimization + + 200 + input + + + + seedThreshold + seedThreshold + Anisotropy threshold used for seed selection + + 0.3 + input + + + + trackingThreshold + trackingThreshold + Anisotropy threshold used for fiber tracking + + 0.2 + input + + + + + costStepSize + costStepSize + Cost image sub-voxel sampling + + 1.0 + input + + + + maximumStepSize + maximumStepSize + Maximum step size to move when tracking + + 1.0 + input + + + + minimumStepSize + minimumStepSize + Minimum step size to move when tracking + + 0.1 + input + + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractFiberTracking.xml b/tools/xmls/gtractFiberTracking.xml new file mode 100644 index 0000000..7480b12 --- /dev/null +++ b/tools/xmls/gtractFiberTracking.xml @@ -0,0 +1,283 @@ + + + Diffusion.GTRACT + Fiber Tracking + + This program implements four fiber tracking methods (Free, Streamline, GraphSearch, Guided). The output of the fiber tracking is vtkPolyData (i.e. Polylines) that can be loaded into Slicer3 for visualization. The poly data can be saved in either old VTK format files (.vtk) or in the new VTK XML format (.xml). The polylines contain point data that defines ther Tensor at each point along the fiber tract. This can then be used to rendered as glyphs in Slicer3 and can be used to define severeal scalar measures without referencing back to the anisotropy images. (1) Free tracking is a basic streamlines algorithm. This is a direct implementation of the method original proposed by Basser et al. The tracking follows the primarty eigenvector. The tracking begins with seed points in the starting region. Only those voxels above the specified anisotropy threshold in the starting region are used as seed points. Tracking terminates either as a result of maximum fiber length, low ansiotropy, or large curvature. This is a great way to explore your data. (2) The streamlines algorithm is a direct implementation of the method originally proposed by Basser et al. The tracking follows the primary eigenvector. The tracking begins with seed points in the starting region. Only those voxels above the specified anisotropy threshold in the starting region are used as seed points. Tracking terminates either by reaching the ending region or reaching some stopping criteria. Stopping criteria are specified using the following parameters: tracking threshold, curvature threshold, and max length. Only paths terminating in the ending region are kept in this method. The TEND algorithm proposed by Lazar et al. (Human Brain Mapping 18:306-321, 2003) has been instrumented. This can be enabled using the --useTend option while performing Streamlines tracking. This utilizes the entire diffusion tensor to deflect the incoming vector instead of simply following the primary eigenvector. The TEND parameters are set using the --tendF and --tendG options. (3) Graph Search tracking is the first step in the full GTRACT algorithm developed by Cheng et al. (NeuroImage 31(3): 1075-1085, 2006) for finding the tracks in a tensor image. This method was developed to generate fibers in a Tensor representation where crossing fibers occur. The graph search algorithm follows the primary eigenvector in non-ambigous regions and utilizes branching and a graph search algorithm in ambigous regions. Ambiguous tracking regions are defined based on two criteria: Branching Al Threshold (anisotropy values below this value and above the traching threshold) and Curvature Major Eigen (angles of the primary eigenvector direction and the current tracking direction). In regions that meet this criteria, two or three tracking paths are considered. The first is the standard primary eigenvector direction. The second is the seconadary eigenvector direction. This is based on the assumption that these regions may be prolate regions. If the Random Walk option is selected then a third direction is also considered. This direction is defined by a cone pointing from the current position to the centroid of the ending region. The interior angle of the cone is specified by the user with the Branch/Guide Angle parameter. A vector contained inside of the cone is selected at random and used as the third direction. This method can also utilize the TEND option where the primary tracking direction is that specified by the TEND method instead of the primary eigenvector. The parameter '--maximumBranchPoints' allows the tracking to have this number of branches being considered at a time. If this number of branch points is exceeded at any time, then the algorithm will revert back to a streamline alogrithm until the number of branches is reduced. This allows the user to constrain the computational complexity of the algorithm. (4) The second phase of the GTRACT algorithm is Guided Tracking. This method incorporates anatomical information about the track orientation using an initial guess of the fiber track. In the originally proposed GTRACT method, this would be created from the fibers resulting from the Graph Search tracking. However, in practice this can be created using any method and could be defined manually. To create the guide fiber the program gtractCreateGuideFiber can be used. This program will load a fiber tract that has been generated and create a centerline representation of the fiber tract (i.e. a single fiber). In this method, the fiber tracking follows the primary eigenvector direction unless it deviates from the guide fiber track by a angle greater than that specified by the '--guidedCurvatureThreshold' parameter. The user must specify the guide fiber when running this program. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta, Greg Harris and Yongqiang Zhao. + + + + + Parameters for specifying the diffusion tensor image set + + + inputTensorVolume + inputTensorVolume + Required (for Free, Streamline, GraphSearch, and Guided fiber tracking methods): input tensor image file name + + input + + + + inputAnisotropyVolume + inputAnisotropyVolume + Required (for Free, Streamline, GraphSearch, and Guided fiber tracking methods): input anisotropy image file name + + input + + + + inputStartingSeedsLabelMapVolume + inputStartingSeedsLabelMapVolume + Required (for Free, Streamline, GraphSearch, and Guided fiber tracking methods): input starting seeds LabelMap image file name + + input + + + + startingSeedsLabel + startingSeedsLabel + Label value for Starting Seeds (required if Label number used to create seed point in Slicer was not 1) + + 1 + input + + + + inputEndingSeedsLabelMapVolume + inputEndingSeedsLabelMapVolume + Required (for Streamline, GraphSearch, and Guided fiber tracking methods): input ending seeds LabelMap image file name + + input + + + + endingSeedsLabel + endingSeedsLabel + Label value for Ending Seeds (required if Label number used to create seed point in Slicer was not 1) + + 1 + input + + + + inputTract + inputTract + Required (for Guided fiber tracking method): guide fiber in vtkPolydata file containing one tract line. + + input + + + + + + + + Output file in which to store tract lines + + + outputTract + outputTract + Required (for Free, Streamline, GraphSearch, and Guided fiber tracking methods): name of output vtkPolydata file containing tract lines and the point data collected along them. + + output + + + + writeXMLPolyDataFile + writeXMLPolyDataFile + Flag to make use of the XML format for vtkPolyData fiber tracts. + + 0 + output + + + + + + + Input parameters controlling the track finding + + + trackingMethod + trackingMethod + Fiber tracking Filter Type: Guided|Free|Streamline|GraphSearch + + Guided + Guided + Free + Streamline + GraphSearch + + + + guidedCurvatureThreshold + guidedCurvatureThreshold + Guided Curvature Threshold (Degrees) + + 30.0 + input + + + + maximumGuideDistance + maximumGuideDistance + Maximum distance for using the guide fiber direction + + 12.0 + input + + + + seedThreshold + seedThreshold + Anisotropy threshold for seed selection (recommended for Free fiber tracking) + + 0.40 + input + + + + trackingThreshold + trackingThreshold + Anisotropy threshold for fiber tracking (anisotropy values of the next point along the path) + + 0.20 + input + + + + curvatureThreshold + curvatureThreshold + Curvature threshold in degrees (recommended for Free fiber tracking) + + 45.0 + input + + + + branchingThreshold + branchingThreshold + Anisotropy Branching threshold (recommended for GraphSearch fiber tracking method) + + 0.20 + input + + + + maximumBranchPoints + maximumBranchPoints + Maximum branch points (recommended for GraphSearch fiber tracking method) + + 5 + input + + + + useRandomWalk + useRandomWalk + Flag to use random walk. + + 0 + input + + + + randomSeed + randomSeed + Random number generator seed + + 13579 + input + + + + branchingAngle + branchingAngle + Branching angle in degrees (recommended for GraphSearch fiber tracking method) + + 45.0 + input + + + + minimumLength + minimumLength + Minimum fiber length. Helpful for filtering invalid tracts. + + 0.0 + input + + + + maximumLength + maximumLength + Maximum fiber length (voxels) + + 125.0 + input + + + + stepSize + stepSize + Fiber tracking step size + + 1.0 + input + + + + useLoopDetection + useLoopDetection + Flag to make use of loop detection. + + 0 + input + + + + useTend + useTend + Flag to make use of Tend F and Tend G parameters. + + 0 + input + + + + tendF + tendF + Tend F parameter + + 0.5 + input + + + + tendG + tendG + Tend G parameter + + 0.5 + input + + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractFreeTracking.xml b/tools/xmls/gtractFreeTracking.xml new file mode 100644 index 0000000..4de0bd4 --- /dev/null +++ b/tools/xmls/gtractFreeTracking.xml @@ -0,0 +1,171 @@ + + + Diffusion.GTRACT + Free Tracking + + This program will use streamlines fiber tracking to identify fiber tracts in a tensor image. A seed region is specify for initializing the algorithm. All fibers are kept and are terminated based on the stopping criteria including anisotropy, curvature and length. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the diffusion tensor image set + + + inputTensorVolume + inputTensorVolume + Required: input tensor image file name + + input + + + + inputAnisotropyVolume + inputAnisotropyVolume + Required: input anisotropy image file name + + input + + + + inputStartingSeedsLabelMapVolume + inputStartingSeedsLabelMapVolume + Required: input starting seeds LabelMap image file name + + input + + + + startingSeedsLabel + startingSeedsLabel + Label value for Starting Seeds + + 1 + input + + + + + + + Output file in which to store tract lines + + + outputTract + outputTract + Required: name of output vtkPolydata file containing tract lines and the point data collected along them. + + output + + + + writeXMLPolyDataFile + writeXMLPolyDataFile + Flag to make use of the XML format for vtkPolyData fiber tracts. + + 0 + output + + + + + + + Input parameters controlling the track finding + + + seedThreshold + seedThreshold + Anisotropy threshold for seed selection + + 0.40 + input + + + + trackingThreshold + trackingThreshold + Anisotropy threshold for fiber tracking + + 0.20 + input + + + + curvatureThreshold + curvatureThreshold + Curvature threshold (Degrees) + + 45.0 + input + + + + minimumLength + minimumLength + Minimum fiber length. Helpful for filtering invalid tracts. + + 0.0 + input + + + + maximumLength + maximumLength + Maximum fiber length + + 125.0 + input + + + + stepSize + stepSize + Fiber tracking step size + + 1.0 + input + + + + useLoopDetection + useLoopDetection + Flag to make use of loop detection. + + 0 + input + + + + useTend + useTend + Flag to make use of Tend F and Tend G parameters. + + 0 + input + + + + tendF + tendF + Tend F parameter + + 0.5 + input + + + + tendG + tendG + Tend G parameter + + 0.5 + input + + + + diff --git a/tools/xmls/gtractGraphSearchTracking.xml b/tools/xmls/gtractGraphSearchTracking.xml new file mode 100644 index 0000000..97200e6 --- /dev/null +++ b/tools/xmls/gtractGraphSearchTracking.xml @@ -0,0 +1,233 @@ + + + Diffusion.GTRACT + Graph Search Tracking + + This program implements the Graph Serach Tracking method proposed by Cheng et al. in NeuroImage Volume 31, Issue 3, 1 July 2006, Pages 1075-1085 for finding the tracks in a tensor image. This method to generate fibers in a Tensor representation where crossing fibers occur. This is defined by low anisotropy and high curvature. Both of these values are controlled by the user. In these regions, three directions for tracking are considered. This includes the primary eigenvector, secondary eigenvector, and a vector with random pertubations added pointing towards the ending region. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the diffusion tensor image set + + + inputTensorVolume + inputTensorVolume + Required: input tensor image file name + + input + + + + inputAnisotropyVolume + inputAnisotropyVolume + Required: input anisotropy image file name + + input + + + + inputStartingSeedsLabelMapVolume + inputStartingSeedsLabelMapVolume + Required: input starting seeds LabelMap image file name + + input + + + + startingSeedsLabel + startingSeedsLabel + Label value for Starting Seeds + + 1 + input + + + + inputEndingSeedsLabelMapVolume + inputEndingSeedsLabelMapVolume + Required: input ending seeds LabelMap image file name + + input + + + + endingSeedsLabel + endingSeedsLabel + Label value for Ending Seeds + + 1 + input + + + + + + + Output file in which to store tract lines + + + outputTract + outputTract + Required: name of output vtkPolydata file containing tract lines and the point data collected along them. + + output + + + + writeXMLPolyDataFile + writeXMLPolyDataFile + Flag to make use of the XML format for vtkPolyData fiber tracts. + + 0 + output + + + + + + + Input parameters controlling the track finding + + + seedThreshold + seedThreshold + Anisotropy threshold for seed selection + + 0.40 + input + + + + trackingThreshold + trackingThreshold + Anisotropy threshold for fiber tracking + + 0.20 + input + + + + curvatureThreshold + curvatureThreshold + Curvature threshold (Degrees) + + 45.0 + input + + + + branchingThreshold + branchingThreshold + Anisotropy Branching threshold + + 0.20 + input + + + + maximumBranchPoints + maximumBranchPoints + Maximum branch points + + 5 + input + + + + useRandomWalk + useRandomWalk + Flag to use random walk. + + 0 + input + + + + randomSeed + randomSeed + Random number generator seed + + 13579 + input + + + + branchingAngle + branchingAngle + Branchging angle (Degrees) + + 45.0 + input + + + + minimumLength + minimumLength + Minimum fiber length. Helpful for filtering invalid tracts. + + 0.0 + input + + + + maximumLength + maximumLength + Maximum fiber length + + 125.0 + input + + + + stepSize + stepSize + Fiber tracking step size + + 1.0 + input + + + + useLoopDetection + useLoopDetection + Flag to make use of loop detection. + + 0 + input + + + + useTend + useTend + Flag to make use of Tend F and Tend G parameters. + + 0 + input + + + + tendF + tendF + Tend F parameter + + 0.5 + input + + + + tendG + tendG + Tend G parameter + + 0.5 + input + + + + diff --git a/tools/xmls/gtractGuidedTracking.xml b/tools/xmls/gtractGuidedTracking.xml new file mode 100644 index 0000000..b8ef744 --- /dev/null +++ b/tools/xmls/gtractGuidedTracking.xml @@ -0,0 +1,214 @@ + + + Diffusion.GTRACT + Guided Tracking + + This program will use the Guided Tracking method proposed by Cheng et al. in NeuroImage Volume 31, Issue 3, 1 July 2006, Pages 1075-1085 for finding the tracks in a tensor image. The method will use a guide fiber as apriori information for the fiber tract position and orientation. If the current eigenvector direction is significantly different from the guide fiber direction at that point, then the guide fiber is used instead of the eigenvector direction. The distance for which the guide fiber has an effect is defined by the user. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the diffusion tensor image set + + + inputTensorVolume + inputTensorVolume + Required: input tensor image file name + + input + + + + inputAnisotropyVolume + inputAnisotropyVolume + Required: input anisotropy image file name + + input + + + + inputStartingSeedsLabelMapVolume + inputStartingSeedsLabelMapVolume + Required: input starting seeds LabelMap image file name + + input + + + + startingSeedsLabel + startingSeedsLabel + Label value for Starting Seeds + + 1 + input + + + + inputEndingSeedsLabelMapVolume + inputEndingSeedsLabelMapVolume + Required: input ending seeds LabelMap image file name + + input + + + + endingSeedsLabel + endingSeedsLabel + Label value for Ending Seeds + + 1 + input + + + + inputTract + inputTract + Required: guide fiber in vtkPolydata file containing one tract line. + + input + + + + + + + Output file in which to store tract lines + + + outputTract + outputTract + Required: name of output vtkPolydata file containing tract lines and the point data collected along them. + + output + + + + writeXMLPolyDataFile + writeXMLPolyDataFile + Flag to make use of the XML format for vtkPolyData fiber tracts. + + 0 + output + + + + + + + Input parameters controlling fiber tracking + + + seedThreshold + seedThreshold + Anisotropy threshold for seed selection + + 0.40 + input + + + + trackingThreshold + trackingThreshold + Anisotropy threshold for fiber tracking + + 0.20 + input + + + + maximumGuideDistance + maximumGuideDistance + Maximum distance for using the guide fiber direction + + 12.0 + input + + + + curvatureThreshold + curvatureThreshold + Curvature threshold (Degrees) + + 45.0 + input + + + + guidedCurvatureThreshold + guidedCurvatureThreshold + Guided Curvature Threshold (Degrees) + + 30.0 + input + + + + minimumLength + minimumLength + Minimum fiber length. Helpful for filtering invalid tracts. + + 0.0 + input + + + + maximumLength + maximumLength + Maximum fiber length + + 125.0 + input + + + + stepSize + stepSize + Fiber tracking step size + + 1.0 + input + + + + useLoopDetection + useLoopDetection + Flag to make use of loop detection. + + 0 + input + + + + useTend + useTend + Flag to make use of Tend F and Tend G parameters. + + 0 + input + + + + tendF + tendF + Tend F parameter + + 0.5 + input + + + + tendG + tendG + Tend G parameter + + 0.5 + input + + + + diff --git a/tools/xmls/gtractImageConformity.xml b/tools/xmls/gtractImageConformity.xml new file mode 100644 index 0000000..4ed5c10 --- /dev/null +++ b/tools/xmls/gtractImageConformity.xml @@ -0,0 +1,62 @@ + + + Diffusion.GTRACT + Image Conformity + + This program will straighten out the Direction and Origin to match the Reference Image. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the code image, and the reference image to clone the position and orientation of. + + + inputVolume + inputVolume + Required: input file containing the signed short image to reorient without resampling. + + input + + + + inputReferenceVolume + inputReferenceVolume + Required: input file containing the standard image to clone the characteristics of. + + input + + + + + + Output file from resampling the input specimen image + + + outputVolume + outputVolume + Required: name of output Nrrd or Nifti file containing the reoriented image in reference image space. + + output + + + + + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractInvertBSplineTransform.xml b/tools/xmls/gtractInvertBSplineTransform.xml new file mode 100644 index 0000000..7e411e7 --- /dev/null +++ b/tools/xmls/gtractInvertBSplineTransform.xml @@ -0,0 +1,74 @@ + + + Diffusion.GTRACT + B-Spline Transform Inversion + + This program will invert a B-Spline transform using a thin-plate spline approximation. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + Parameters for specifying the B-Spline transform and the space to invert it in. + + + inputReferenceVolume + inputReferenceVolume + Required: input image file name to exemplify the anatomical space to interpolate over. + + input + + + + inputTransform + inputTransform + Required: input B-Spline transform file name + + input + + + + + + + Output file from conversion from Dicom to Nrrd + + + outputTransform + outputTransform + Required: output transform file name + + output + + + + + + + Input parameters controlling the approximation of a B-Spline inverse by a thin-plate spline. + + + landmarkDensity + landmarkDensity + Number of landmark subdivisions in all 3 directions + + 8,8,8 + input + + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractInvertDisplacementField.xml b/tools/xmls/gtractInvertDisplacementField.xml new file mode 100644 index 0000000..268df0d --- /dev/null +++ b/tools/xmls/gtractInvertDisplacementField.xml @@ -0,0 +1,64 @@ + + + Diffusion.GTRACT + Invert Displacement Field + + This program will invert a deformatrion field. The size of the deformation field is defined by an example image provided by the user + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta. + + + + + Parameters for generating the inverse deformation field + + + baseImage + baseImage + Required: base image used to define the size of the inverse field + + input + + + + deformationImage + deformationImage + Required: Displacement field image + + input + + + + outputVolume + outputVolume + Required: Output deformation field + + output + + + + subsamplingFactor + subsamplingFactor + Subsampling factor for the deformation field + + 16 + input + + + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractInvertRigidTransform.xml b/tools/xmls/gtractInvertRigidTransform.xml new file mode 100644 index 0000000..e179815 --- /dev/null +++ b/tools/xmls/gtractInvertRigidTransform.xml @@ -0,0 +1,51 @@ + + + Diffusion.GTRACT + Rigid Transform Inversion + + This program will invert a Rigid transform. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the rigid transform + + + inputTransform + inputTransform + Required: input rigid transform file name + + input + + + + + + + Output file for inverse transform + + + outputTransform + outputTransform + Required: output transform file name + + output + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractResampleAnisotropy.xml b/tools/xmls/gtractResampleAnisotropy.xml new file mode 100644 index 0000000..5d98952 --- /dev/null +++ b/tools/xmls/gtractResampleAnisotropy.xml @@ -0,0 +1,77 @@ + + + Diffusion.GTRACT + Resample Anisotropy + + This program will resample a floating point image using either the Rigid or B-Spline transform. You may want to save the aligned B0 image after each of the anisotropy map co-registration steps with the anatomical image to check the registration quality with another tool. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the anisotropy image, the transform filename, the transform type, and the anatomical image (whose characteristics will be cloned). + + + inputAnisotropyVolume + inputAnisotropyVolume + Required: input file containing the anisotropy image + + input + + + + inputAnatomicalVolume + inputAnatomicalVolume + Required: input file containing the anatomical image whose characteristics will be cloned. + + input + + + + inputTransform + inputTransform + Required: input Rigid OR Bspline transform file name + + input + + + + transformType + transformType + Transform type: Rigid, B-Spline + + Rigid + Rigid + B-Spline + input + + + + + + Output file from resampling the input 3D float image + + + outputVolume + outputVolume + Required: name of output NRRD file containing the resampled transformed anisotropy image. + + output + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + + diff --git a/tools/xmls/gtractResampleB0.xml b/tools/xmls/gtractResampleB0.xml new file mode 100644 index 0000000..4a5b715 --- /dev/null +++ b/tools/xmls/gtractResampleB0.xml @@ -0,0 +1,86 @@ + + + Diffusion.GTRACT + Resample B0 + + This program will resample a signed short image using either a Rigid or B-Spline transform. The user must specify a template image that will be used to define the origin, orientation, spacing, and size of the resampled image. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the resampled image + + + inputVolume + inputVolume + Required: input file containing the 4D image + + input + + + + inputAnatomicalVolume + inputAnatomicalVolume + Required: input file containing the anatomical image defining the origin, spacing and size of the resampled image (template) + + input + + + + inputTransform + inputTransform + Required: input Rigid OR Bspline transform file name + + input + + + + vectorIndex + vectorIndex + Index in the diffusion weighted image set for the B0 image + + 0 + input + + + + transformType + transformType + Transform type: Rigid, B-Spline + + Rigid + B-Spline + Rigid + input + + + + + + Output file from resampling the input 4D input image + + + outputVolume + outputVolume + Required: name of output NRRD file containing the resampled input image. + + output + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractResampleCodeImage.xml b/tools/xmls/gtractResampleCodeImage.xml new file mode 100644 index 0000000..2da601b --- /dev/null +++ b/tools/xmls/gtractResampleCodeImage.xml @@ -0,0 +1,78 @@ + + + Diffusion.GTRACT + Resample Code Image + + This program will resample a short integer code image using either the Rigid or Inverse-B-Spline transform. The reference image is the DTI tensor anisotropy image space, and the input code image is in anatomical space. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + Parameters for specifying the code image, the transform filename, the transform type, and the standard image (whose characteristics will be cloned). + + + inputCodeVolume + inputCodeVolume + Required: input file containing the code image + + input + + + + inputReferenceVolume + inputReferenceVolume + Required: input file containing the standard image to clone the characteristics of. + + input + + + + inputTransform + inputTransform + Required: input Rigid or Inverse-B-Spline transform file name + + input + + + + transformType + transformType + Transform type: Rigid or Inverse-B-Spline + + Inverse-B-Spline + Rigid + Affine + B-Spline + Inverse-B-Spline + None + + + + + + Output file from resampling the input code image + + + outputVolume + outputVolume + Required: name of output NRRD file containing the resampled code image in acquisition space. + + output + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + + diff --git a/tools/xmls/gtractResampleDWIInPlace.xml b/tools/xmls/gtractResampleDWIInPlace.xml new file mode 100644 index 0000000..f486737 --- /dev/null +++ b/tools/xmls/gtractResampleDWIInPlace.xml @@ -0,0 +1,112 @@ + + + Diffusion.GTRACT + Resample DWI In Place + + Resamples DWI image to structural image. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta, Greg Harris, Hans Johnson, and Joy Matsui. + + + + + + + + inputVolume + inputVolume + Required: input image is a 4D NRRD image. + + input + + + referenceVolume + referenceVolume + If provided, resample to the final space of the referenceVolume 3D data set. + + input + + + + outputResampledB0 + outputResampledB0 + Convenience function for extracting the first index location (assumed to be the B0) + + output + + + + + inputTransform + inputTransform + Required: transform file derived from rigid registration of b0 image to reference structural image. + + input + + + + warpDWITransform + warpDWITransform + Optional: transform file to warp gradient volumes. + + input + + + + debugLevel + + Display debug messages, and produce debug intermediate results. 0=OFF, 1=Minimal, 10=Maximum debugging. + --debugLevel + 0 + + + + writeOutputMetaData + writeOutputMetaData + + A file to write the output image diffusion gradient directions in a CSV file + output + + + + + + + + + imageOutputSize + imageOutputSize + + The voxel lattice for the output image, padding is added if necessary. NOTE: if 0,0,0, then the inputVolume size is used. + 0,0,0 + + + + + + + + + + outputVolume + outputVolume + Required: output image (NRRD file) that has been rigidly transformed into the space of the structural image and padded if image padding was changed from 0,0,0 default. + + output + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractResampleFibers.xml b/tools/xmls/gtractResampleFibers.xml new file mode 100644 index 0000000..5f3fb51 --- /dev/null +++ b/tools/xmls/gtractResampleFibers.xml @@ -0,0 +1,77 @@ + + + Diffusion.GTRACT + Resample Fibers + + This program will resample a fiber tract with respect to a pair of deformation fields that represent the forward and reverse deformation fields. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the diffusion tensor image set + + + inputForwardDeformationFieldVolume + inputForwardDeformationFieldVolume + Required: input forward deformation field image file name + + input + + + + inputReverseDeformationFieldVolume + inputReverseDeformationFieldVolume + Required: input reverse deformation field image file name + + input + + + + inputTract + inputTract + Required: name of input vtkPolydata file containing tract lines. + + input + + + + + + + Output file in which to store tract lines + + + outputTract + outputTract + Required: name of output vtkPolydata file containing tract lines and the point data collected along them. + + output + + + + writeXMLPolyDataFile + writeXMLPolyDataFile + Flag to make use of the XML format for vtkPolyData fiber tracts. + + 0 + output + + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractStreamlineTracking.xml b/tools/xmls/gtractStreamlineTracking.xml new file mode 100644 index 0000000..0a4d9c0 --- /dev/null +++ b/tools/xmls/gtractStreamlineTracking.xml @@ -0,0 +1,189 @@ + + + Diffusion.GTRACT + Streamline Tracking + + This program create fiber tracts in a tensor image using a basic streamlines algorithm. The algorithm requires a starting and ending region to be be defined for the fiber tracts. Only those that reach the ending region without terminating are kept. Criteria for termination include length, anisotropy, and curvature. These can be controlled by user. In addition, the TEND method as proposed by Lazar et al Human Brain Mapping 18:306-321(2003) has been instrumented. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + + Parameters for specifying the diffusion tensor image set + + + inputTensorVolume + inputTensorVolume + Required: input tensor image file name + + input + + + + inputAnisotropyVolume + inputAnisotropyVolume + Required: input anisotropy image file name + + input + + + + inputStartingSeedsLabelMapVolume + inputStartingSeedsLabelMapVolume + Required: input starting seeds LabelMap image file name + + input + + + + startingSeedsLabel + startingSeedsLabel + Label value for Starting Seeds + + 1 + input + + + + inputEndingSeedsLabelMapVolume + inputEndingSeedsLabelMapVolume + Required: input ending seeds LabelMap image file name + + input + + + + endingSeedsLabel + endingSeedsLabel + Label value for Ending Seeds + + 1 + input + + + + + + + Output file in which to store tract lines + + + outputTract + outputTract + Required: name of output vtkPolydata file containing tract lines and the point data collected along them. + + output + + + + writeXMLPolyDataFile + writeXMLPolyDataFile + Flag to make use of the XML format for vtkPolyData fiber tracts. + + 0 + output + + + + + + + Input parameters controlling the track finding + + + seedThreshold + seedThreshold + Anisotropy threshold for seed selection + + 0.40 + input + + + + trackingThreshold + trackingThreshold + Anisotropy threshold for fiber tracking + + 0.20 + input + + + + curvatureThreshold + curvatureThreshold + Curvature threshold (Degrees) + + 45.0 + input + + + + minimumLength + minimumLength + Minimum fiber length. Helpful for filtering invalid tracts. + + 0.0 + input + + + + + maximumLength + maximumLength + Maximum fiber length + + 125.0 + input + + + + stepSize + stepSize + Fiber tracking step size + + 1.0 + input + + + + useLoopDetection + useLoopDetection + Flag to make use of loop detection. + + 0 + input + + + + useTend + useTend + Flag to make use of Tend F and Tend G parameters. + + 0 + input + + + + tendF + tendF + Tend F parameter + + 0.5 + input + + + + tendG + tendG + Tend G parameter + + 0.5 + input + + + + diff --git a/tools/xmls/gtractTensor.xml b/tools/xmls/gtractTensor.xml new file mode 100644 index 0000000..9e48799 --- /dev/null +++ b/tools/xmls/gtractTensor.xml @@ -0,0 +1,134 @@ + + + Diffusion.GTRACT + Tensor Estimation + + This step will convert a b-value averaged diffusion tensor image to a 3x3 tensor voxel image. This step takes the diffusion tensor image data and generates a tensor representation of the data based on the signal intensity decay, b values applied, and the diffusion difrections. The apparent diffusion coefficient for a given orientation is computed on a pixel-by-pixel basis by fitting the image data (voxel intensities) to the Stejskal-Tanner equation. If at least 6 diffusion directions are used, then the diffusion tensor can be computed. This program uses itk::DiffusionTensor3DReconstructionImageFilter. The user can adjust background threshold, median filter, and isotropic resampling. + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta and Greg Harris. + + + + Parameters for specifying the averaged Bvalue diffusion tensor image set + + + inputVolume + inputVolume + Required: input image 4D NRRD image. Must contain data based on at least 6 distinct diffusion directions. The inputVolume is allowed to have multiple b0 and gradient direction images. Averaging of the b0 image is done internally in this step. Prior averaging of the DWIs is not required. + + input + + + + + + + Output file from conversion from Dicom to NRRD + + + outputVolume + outputVolume + Required: name of output NRRD file containing the Tensor vector image + + output + + + + + + + Input parameters controlling the mapping from averaged B values to 3 by 3 tensors + + + medianFilterSize + medianFilterSize + Median filter radius in all 3 directions + + 0,0,0 + input + + + maskProcessingMode + maskProcessingMode + ROIAUTO: mask is implicitly defined using a otsu forground and hole filling algorithm. ROI: Uses the masks to define what parts of the image should be used for computing the transform. NOMASK: no mask used + NOMASK + ROIAUTO + ROI + NOMASK + + + + maskVolume + maskVolume + Mask Image, if maskProcessingMode is ROI + + input + + + backgroundSuppressingThreshold + backgroundSuppressingThreshold + Image threshold to suppress background. This sets a threshold used on the b0 image to remove background voxels from processing. Typically, values of 100 and 500 work well for Siemens and GE DTI data, respectively. Check your data particularly in the globus pallidus to make sure the brain tissue is not being eliminated with this threshold. + + 100 + input + + + + resampleIsotropic + resampleIsotropic + Flag to resample to isotropic voxels. Enabling this feature is recommended if fiber tracking will be performed. + + 0 + input + + + + voxelSize + size + Isotropic voxel size to resample to + + 2.0 + input + + + + b0Index + b0Index + Index in input vector index to extract + + 0 + input + + + + applyMeasurementFrame + applyMeasurementFrame + Flag to apply the measurement frame to the gradient directions + + 0 + input + + + + ignoreIndex + ignoreIndex + Ignore diffusion gradient index. Used to remove specific gradient directions with artifacts. + + input + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/gtractTransformToDisplacementField.xml b/tools/xmls/gtractTransformToDisplacementField.xml new file mode 100644 index 0000000..babf858 --- /dev/null +++ b/tools/xmls/gtractTransformToDisplacementField.xml @@ -0,0 +1,65 @@ + + + Diffusion.GTRACT + Create Displacement Field + + This program will compute forward deformation from the given Transform. The size of the DF is equal to MNI space + Funding for this version of the GTRACT program was provided by NIH/NINDS R01NS050568-01A2S1 + 5.2.0 + http://wiki.slicer.org/slicerWiki/index.php/Modules:GTRACT + http://mri.radiology.uiowa.edu/copyright/GTRACT-Copyright.txt + This tool was developed by Vincent Magnotta, Madhura Ingalhalikar, and Greg Harris + + + + + + Input Image File + + + inputTransform + inputTransform + Input Transform File Name + + input + + + + + inputReferenceVolume + inputReferenceVolume + Required: input image file name to exemplify the anatomical space over which to vcl_express the transform as a displacement field. + + input + + + + + + + + Output file + + + + outputDeformationFieldVolume + outputDeformationFieldVolume + Output deformation field + + output + + + + + + + + + numberOfThreads + numberOfThreads + + Explicitly specify the maximum number of threads to use. + -1 + + + diff --git a/tools/xmls/insertMidACPCpoint.xml b/tools/xmls/insertMidACPCpoint.xml new file mode 100644 index 0000000..dc53348 --- /dev/null +++ b/tools/xmls/insertMidACPCpoint.xml @@ -0,0 +1,37 @@ + + + Utilities.BRAINS + MidACPC Landmark Insertion + + This program gets a landmark fcsv file and adds a new landmark as the midpoint between AC and PC points to the output landmark fcsv file + + 5.2.0 + + + Ali Ghayoor + + + + + + Input/output parameters + + + inputLandmarkFile + --inputLandmarkFile + + input + Input landmark file (.fcsv) + + + + outputLandmarkFile + --outputLandmarkFile + + output + Output landmark file (.fcsv) + + + + + diff --git a/tools/xmls/landmarksConstellationAligner.xml b/tools/xmls/landmarksConstellationAligner.xml new file mode 100644 index 0000000..9be0e52 --- /dev/null +++ b/tools/xmls/landmarksConstellationAligner.xml @@ -0,0 +1,37 @@ + + + Utilities.BRAINS + MidACPC Landmark Insertion + + This program converts the original landmark files to the acpc-aligned landmark files + + 5.2.0 + + + Ali Ghayoor + + + + + + Input/output parameters + + + inputLandmarksPaired + --inputLandmarksPaired + + input + Input landmark file (.fcsv) + + + + outputLandmarksPaired + --outputLandmarksPaired + + output + Output landmark file (.fcsv) + + + + + diff --git a/tools/xmls/landmarksConstellationWeights.xml b/tools/xmls/landmarksConstellationWeights.xml new file mode 100644 index 0000000..ac04f02 --- /dev/null +++ b/tools/xmls/landmarksConstellationWeights.xml @@ -0,0 +1,45 @@ + + + Utilities.BRAINS + Generate Landmarks Weights (BRAINS) + Train up a list of Weights for the Landmarks in BRAINSConstellationDetector + + + inputTrainingList + i + inputTrainingList + + + Setup file, giving all parameters for training up a Weight list for landmark. + + input + + + inputTemplateModel + + + inputTemplateModel + User-specified template model. + + input + + + llsModel + + + LLSModel + Linear least squares model filename in HD5 format + input + + + outputWeightsList + w + outputWeightsList + default.wts + + The filename of a csv file which is a list of landmarks and their corresponding weights. + + output + + + diff --git a/tools/xmls/simpleEM.xml b/tools/xmls/simpleEM.xml new file mode 100644 index 0000000..7c7e98c --- /dev/null +++ b/tools/xmls/simpleEM.xml @@ -0,0 +1,143 @@ + + + Segmentation.Specialized + simpleEM (BRAINS) + Atlas-based tissue segmentation method + + + + + + t1Volume + t1Volume + T1 Volume + + + input + + + t2Volume + t2Volume + T2 Volume + + + input + + + pdVolume + pdVolume + PD Volume + + + input + + + + + + templateVolume + templateVolume + template Volume + + + input + + + priorsList + priorsList + number of input should same to the number of priorsList + + + + priorsWeightList + priorsWeightList + number of input should same to the number of priorsList + + + + likelihoodTolerance + likelihoodTolerance + a convergence parameter (0 indicates take the default from the EMSegmentationFilter constructor.) + 0.0 + + + + + + warp + warp + + false + input + + + degreeOfBiasFieldCorrection + degreeOfBiasFieldCorrection + + 4 + input + + + maxIteration + maxIteration + + 100 + input + + + + + + OutputFileNamePrefix + + BRAINSABC + input + + + inputPixelType + inputPixelType + + Input Type + uchar + usigned char + short + unsigned short + int + unsigned int + long + float + double + + + outputPixelType + outputPixelType + + Input Type + uchar + unsigbed char + short + unsigned short + int + unsigned int + long + float + double + + + priorPixelType + priorPixelType + + prior Type + float + unsigbed char + short + unsigned short + int + unsigned int + long + float + double + + + +