<commit_before>/*=========================================================================

  Program:   Insight Segmentation & Registration Toolkit
  Module:    $RCSfile: castconverthelpers2.h,v $
  Language:  C++
  Date:      $Date: 2007-06-16 17:00:49 $
  Version:   $Revision: 1.4 $

  Copyright (c) 2002 Insight Consortium. All rights reserved.
  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#ifndef __castconverthelpers2_h__
#define __castconverthelpers2_h__

#include "itkCommandLineArgumentParser.h"
#include <itksys/SystemTools.hxx>
#include "itkGDCMSeriesFileNames.h"

/**
 * ******************* PrintHelp *******************
 */

void PrintHelp()
{
	std::cout << "Usage:" << std::endl << "pxcastconvert" << std::endl;
	std::cout << "\t-in\tinputfilename" << std::endl;
	std::cout << "\t-out\toutputfilename" << std::endl;
	std::cout << "\t[-opct]\toutputPixelComponentType" << std::endl;
  std::cout << "\t[-z]\tcompression flag; if provided, the output image is compressed" << std::endl;
	std::cout << "OR pxcastconvert" << std::endl;
	std::cout << "\t-in\tdicomDirectory" << std::endl;
	std::cout << "\t-out\toutputfilename" << std::endl;
	std::cout << "\t[-opct]\toutputPixelComponentType" << std::endl;
	std::cout << "\t[-s]\tseriesUID" << std::endl;
  std::cout << "\t[-z]\tcompression flag; if provided, the output image is compressed" << std::endl;
	std::cout << "where outputPixelComponentType is one of:" << std::endl;
	std::cout << "\tunsigned_char, char, unsigned_short, short, unsigned_int, int," << std::endl;
	std::cout << "\tunsigned_long, long, float, double," << std::endl;
	std::cout << "provided that the outputPixelComponentType is supported by the output file format." << std::endl;
  std::cout << "By default the outputPixelComponentType is set to the inputPixelComponentType." << std::endl;
	std::cout << "By default the seriesUID is the first UID found." << std::endl;
  std::cout << "The compression flag \"-z\" may be ignored by some output image formats." << std::endl;


} // end PrintHelp


/**
 * ******************* GetCommandLineArguments *******************
 */

int GetCommandLineArguments( int argc, char **argv, std::string & errorMessage,
	std::string & input, std::string & outputFileName,<commit_msg>MS:<commit_after>/*=========================================================================

  Program:   Insight Segmentation & Registration Toolkit
  Module:    $RCSfile: castconverthelpers2.h,v $
  Language:  C++
  Date:      $Date: 2007-06-26 14:23:26 $
  Version:   $Revision: 1.5 $

  Copyright (c) 2002 Insight Consortium. All rights reserved.
  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#ifndef __castconverthelpers2_h__
#define __castconverthelpers2_h__

#include "itkCommandLineArgumentParser.h"
#include <itksys/SystemTools.hxx>
#include "itkGDCMSeriesFileNames.h"

/**
 * ******************* PrintHelp *******************
 */

void PrintHelp()
{
	std::cout << "Usage:" << std::endl << "pxcastconvert" << std::endl;
	std::cout << "  -in      inputfilename" << std::endl;
	std::cout << "  -out     outputfilename" << std::endl;
	std::cout << "  [-opct]  outputPixelComponentType" << std::endl;
  std::cout << "  [-z]     compression flag; if provided, the output image is compressed" << std::endl;
	std::cout << "OR pxcastconvert" << std::endl;
	std::cout << "  -in      dicomDirectory" << std::endl;
	std::cout << "  -out     outputfilename" << std::endl;
	std::cout << "  [-opct]  outputPixelComponentType" << std::endl;
	std::cout << "  [-s]     seriesUID" << std::endl;
  std::cout << "  [-z]     compression flag; if provided, the output image is compressed" << std::endl;
	std::cout << "where outputPixelComponentType is one of:" << std::endl;
	std::cout << "  [unsigned_]char, [unsigned_]short, [unsigned_]int," << std::endl;
	std::cout << "  [unsigned_]long, float, double," << std::endl;
	std::cout << "provided that the outputPixelComponentType is supported by the output file format." << std::endl;
  std::cout << "By default the outputPixelComponentType is set to the inputPixelComponentType." << std::endl;
	std::cout << "By default the seriesUID is the first UID found." << std::endl;
  std::cout << "The compression flag \"-z\" may be ignored by some output image formats." << std::endl;


} // end PrintHelp


/**
 * ******************* GetCommandLineArguments *******************
 */

int GetCommandLineArguments( int argc, char **argv, std::string & errorMessage,
	std::string & input, std::string & outputFileName,
{'fraction_non_alphanumeric': 0.22687439143135346, 'fraction_numerical': 0.008958130477117819, 'mean_word_length': 4.903448275862069, 'pattern_counts': {'":': 0, '<': 157, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '233969', 'n_tokens_mistral': 1576, 'n_tokens_neox': 1504, 'n_words': 424}