modified: src/Tools/mrcImage/mrcImageMeanFreePathCalc/Config/OptionControlFile
modified: src/Tools/mrcImage/mrcImageMeanFreePathCalc/src/mrcImageMeanFreePathCalc.c
WORLDNAME=Tools
WORLDNAME=Tools
WORLDNAME=Tools
+WORLDNAME=Tools
# FileFormat
"-i","-i[nput]","Input:mrcImage","Essential","1","1","In","inFile::mrcImage","NULL"
"-o","-o[utput]","Output:distribution","Optional","1","1","Out","outFile::ASCII","stdout"
+"-Owall","-O[utput]w[hite]all","Output: white+whiteEdge","Optional","1","1","OutWhiteAll","outFile::mrcImage","NULL"
"-Ow","-O[utput]w[hite]","Output: white","Optional","1","1","OutWhite","outFile::mrcImage","NULL"
+"-Oball","-O[utput]b[lack]all","Output: black+blackEdge","Optional","1","1","OutBlackAll","outFile::mrcImage","NULL"
"-Ob","-O[utput]b[lack]","Output: black","Optional","1","1","OutBlack","outFile::mrcImage","NULL"
"-Owe","-O[utput]w[hite]e[dge]","Output: whiteEdge","Optional","1","1","OutWhiteEdge","outFile::mrcImage","NULL"
"-Obe","-O[utput]b[lack]e[dge]","Output: blackEdge","Optional","1","1","OutBlackEdge","outFile::mrcImage","NULL"
char* Out;
FILE* fptOut;
+ long flagOutWhiteAll;
+ char* OutWhiteAll;
+ FILE* fptOutWhiteAll;
+
long flagOutWhite;
char* OutWhite;
FILE* fptOutWhite;
+ long flagOutBlackAll;
+ char* OutBlackAll;
+ FILE* fptOutBlackAll;
+
long flagOutBlack;
char* OutBlack;
FILE* fptOutBlack;
}
SBREAK;
}
+ SCASE("Owall") {
+ if(i+1<argc) {
+ info->OutWhiteAll = stringGetNthWord(argv[i+1], 1, " ,");
+ i++;
+ info->flagOutWhiteAll++;
+ } else {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ SBREAK;
+ }
SCASE("Ow") {
if(i+1<argc) {
info->OutWhite = stringGetNthWord(argv[i+1], 1, " ,");
}
SBREAK;
}
+ SCASE("Oball") {
+ if(i+1<argc) {
+ info->OutBlackAll = stringGetNthWord(argv[i+1], 1, " ,");
+ i++;
+ info->flagOutBlackAll++;
+ } else {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ SBREAK;
+ }
SCASE("Ob") {
if(i+1<argc) {
info->OutBlack = stringGetNthWord(argv[i+1], 1, " ,");
{
info->fptIn = NULL; info->flagIn = 0;
info->fptOut = stdout; info->flagOut = 0;
+ info->fptOutWhiteAll = NULL; info->flagOutWhiteAll = 0;
info->fptOutWhite = NULL; info->flagOutWhite = 0;
+ info->fptOutBlackAll = NULL; info->flagOutBlackAll = 0;
info->fptOutBlack = NULL; info->flagOutBlack = 0;
info->fptOutWhiteEdge = NULL; info->flagOutWhiteEdge = 0;
info->fptOutBlackEdge = NULL; info->flagOutBlackEdge = 0;
info->fptOut = fileOpen(info->Out, "w");
}
+ if(info->flagOutWhiteAll) {
+ info->fptOutWhiteAll = fileOpen(info->OutWhiteAll, "w");
+ }
+
if(info->flagOutWhite) {
info->fptOutWhite = fileOpen(info->OutWhite, "w");
}
+ if(info->flagOutBlackAll) {
+ info->fptOutBlackAll = fileOpen(info->OutBlackAll, "w");
+ }
+
if(info->flagOutBlack) {
info->fptOutBlack = fileOpen(info->OutBlack, "w");
}
mrcFileWrite(&linfo.blackEdge, info.OutBlackEdge, "in main", 0);
}
+ if(info.flagOutWhiteAll) {
+ int number = 1;
+ lmrcImageAdd(&linfo.white, &linfo.whiteEdge, &number);
+ mrcFileWrite(&linfo.white, info.OutWhiteAll, "in main", 0);
+ }
+
+ if(info.flagOutBlackAll) {
+ int number = 1;
+ lmrcImageAdd(&linfo.black, &linfo.blackEdge, &number);
+ mrcFileWrite(&linfo.black, info.OutBlackAll, "in main", 0);
+ }
+
if(info.flagDirection && info.mode == 3) {
char s[1024];
for(i=0; i<3; i++) {
Options:
[-i[nput] In (NULL ).as(inFile::mrcImage ) ] :Essential :Input:mrcImage
[-o[utput] Out (stdout ).as(outFile::ASCII ) ] :Optional :Output:distribution
+ [-O[utput]w[hite]all OutWhiteAll (NULL ).as(outFile::mrcImage ) ] :Optional :Output: white+whiteEdge
[-O[utput]w[hite] OutWhite (NULL ).as(outFile::mrcImage ) ] :Optional :Output: white
+ [-O[utput]b[lack]all OutBlackAll (NULL ).as(outFile::mrcImage ) ] :Optional :Output: black+blackEdge
[-O[utput]b[lack] OutBlack (NULL ).as(outFile::mrcImage ) ] :Optional :Output: black
[-O[utput]w[hite]e[dge]OutWhiteEdge (NULL ).as(outFile::mrcImage ) ] :Optional :Output: whiteEdge
[-O[utput]b[lack]e[dge]OutBlackEdge (NULL ).as(outFile::mrcImage ) ] :Optional :Output: blackEdge
-Q 1 0 5.25x1+47+0 'Close'
-I 1 0 1 1 0 1 -1x1+1+1.500000 ' ' 'In' 'Input:mrcImage' i
-O 1 0 1 0 0 1 -1x1+1+3.000000 ' ' 'Out' 'Output:distribution' o
- -O 1 0 1 0 0 1 -1x1+1+4.500000 ' ' 'OutWhite' 'Output: white' Ow
- -O 1 0 1 0 0 1 -1x1+1+6.000000 ' ' 'OutBlack' 'Output: black' Ob
- -O 1 0 1 0 0 1 -1x1+1+7.500000 ' ' 'OutWhiteEdge' 'Output: whiteEdge' Owe
- -O 1 0 1 0 0 1 -1x1+1+9.000000 ' ' 'OutBlackEdge' 'Output: blackEdge' Obe
- -s 1 0 1 0 0 -1x1+1+10.500000 0 0 0 0 0 'Direction' 'Output: basename.[0|1|2] vector for any' Odir
- -I 1 0 0 1 0 1 -1x1+1+12 ' ' '1' 'LineThicknessX' [pixel]
- -i 1 0 1 0 0 -1x1+1+13.500000 0 0 0 0 0 'LineMode' 'LineMode' lm
- -i 1 0 1 0 0 -1x1+1+15.000000 0 0 0 0 0 'LineShape' 'LineShape' ls
- -f 1 0 1 0 0 -1x1+1+16.500000 0 0 30.000000 0 0 0 'deltaPhi' 'deltaPhi' deltaPhi
- -f 1 0 1 0 0 -1x1+1+18.000000 0 0 30.000000 0 0 0 'deltaTheta' 'deltaTheta' deltaTheta
- -I 1 0 1 0 0 1 -1x1+1+19.500000 ' ' 'configFile' 'ConfigurationFile' c
- -i 1 0 1 0 0 -1x1+1+21.000000 0 0 0 0 0 'mode' 'Mode' m
+ -O 1 0 1 0 0 1 -1x1+1+4.500000 ' ' 'OutWhiteAll' 'Output: white+whiteEdge' Owall
+ -O 1 0 1 0 0 1 -1x1+1+6.000000 ' ' 'OutWhite' 'Output: white' Ow
+ -O 1 0 1 0 0 1 -1x1+1+7.500000 ' ' 'OutBlackAll' 'Output: black+blackEdge' Oball
+ -O 1 0 1 0 0 1 -1x1+1+9.000000 ' ' 'OutBlack' 'Output: black' Ob
+ -O 1 0 1 0 0 1 -1x1+1+10.500000 ' ' 'OutWhiteEdge' 'Output: whiteEdge' Owe
+ -O 1 0 1 0 0 1 -1x1+1+12.000000 ' ' 'OutBlackEdge' 'Output: blackEdge' Obe
+ -s 1 0 1 0 0 -1x1+1+13.500000 0 0 0 0 0 'Direction' 'Output: basename.[0|1|2] vector for any' Odir
+ -I 1 0 0 1 0 1 -1x1+1+15 ' ' '1' 'LineThicknessX' [pixel]
+ -i 1 0 1 0 0 -1x1+1+16.500000 0 0 0 0 0 'LineMode' 'LineMode' lm
+ -i 1 0 1 0 0 -1x1+1+18.000000 0 0 0 0 0 'LineShape' 'LineShape' ls
+ -f 1 0 1 0 0 -1x1+1+19.500000 0 0 30.000000 0 0 0 'deltaPhi' 'deltaPhi' deltaPhi
+ -f 1 0 1 0 0 -1x1+1+21.000000 0 0 30.000000 0 0 0 'deltaTheta' 'deltaTheta' deltaTheta
+ -I 1 0 1 0 0 1 -1x1+1+22.500000 ' ' 'configFile' 'ConfigurationFile' c
+ -i 1 0 1 0 0 -1x1+1+24.000000 0 0 0 0 0 'mode' 'Mode' m
-E
-E
-E
exec5:
@echo "----- Execution Check -----"
- ../$(OSTYPE)/$(OBJECTNAME) -i data/test.bin -o data/test.mfp.any -Ow data/test.white.any -Owe data/test.whiteEdge.any -Ob data/test.black.any -Obe data/test.blackEdge.any -Odir data/test.mode3.dir -m 3 -deltaPhi 10 -deltaTheta 10
+ ../$(OSTYPE)/$(OBJECTNAME) -i data/test.bin -o data/test.mfp.any -Ow data/test.white.any -Owe data/test.whiteEdge.any -Ob data/test.black.any -Obe data/test.blackEdge.any -Odir data/test.mode3.dir -m 3 -deltaPhi 10 -deltaTheta 10 -Owall data/test.white.all -Oball data/test.black.all
init:
fprintf(stderr, "Options:\n");
fprintf(stderr, " [-i[nput] In (NULL ).as(inFile::mrcImage ) ] :Essential :Input:mrcImage\n");
fprintf(stderr, " [-o[utput] Out (stdout ).as(outFile::ASCII ) ] :Optional :Output:distribution\n");
+ fprintf(stderr, " [-O[utput]w[hite]all OutWhiteAll (NULL ).as(outFile::mrcImage ) ] :Optional :Output: white+whiteEdge\n");
fprintf(stderr, " [-O[utput]w[hite] OutWhite (NULL ).as(outFile::mrcImage ) ] :Optional :Output: white\n");
+ fprintf(stderr, " [-O[utput]b[lack]all OutBlackAll (NULL ).as(outFile::mrcImage ) ] :Optional :Output: black+blackEdge\n");
fprintf(stderr, " [-O[utput]b[lack] OutBlack (NULL ).as(outFile::mrcImage ) ] :Optional :Output: black\n");
fprintf(stderr, " [-O[utput]w[hite]e[dge]OutWhiteEdge (NULL ).as(outFile::mrcImage ) ] :Optional :Output: whiteEdge\n");
fprintf(stderr, " [-O[utput]b[lack]e[dge]OutBlackEdge (NULL ).as(outFile::mrcImage ) ] :Optional :Output: blackEdge\n");