--- /dev/null
+#
+# This is Main Makefile for mrcImageFourierNeighborCorrelation.
+#
+
+#### Input extention ####
+INI=mrc
+MASK=mask
+MASKBACK=maskback
+FSC=fsc
+
+#### Suffixes rule ####
+# Defined at Sub
+
+#### INCLUDE ####
+-include Makefile.config
+
+#### Definition ####
+# Path of Input File
+INPUT_PATH=../../SampleData/1VOM-N.mrc
+
+### FileData
+FILE_NAME=Input
+
+### ForMask
+MASK_F_MODE=4
+MASK_VALUE=0.0125
+
+# MaskSize
+MASK_SIZE_X=256
+MASK_SIZE_Y=256
+MASK_SIZE_Z=256
+
+#### Rules of the list created ####
+# Defined at Sub
+
+##### Commands #####
+# Defined at Sub basically
+all::
+ make InitialData;
+ make InputInfo;
+ make MaskBackImage;
+ make InputBackImage;
+ make InputMaskImage;
+ make FSC;
+
+##### Commands(Input to Output) #####
+# Defined at Sub
+.$(MASK).$(FSC):
+ mrcImageFourierNeighborCorrelation -i $*.$(INI)pad -o $*.$(FSC) -d 0.025 \
+ -FSC -mask $*.$(MASK) -maskBack $*.$(MASKBACK);
--- /dev/null
+#
+# This is Sub Makefile for mrcImageFourierNeighborCorrelation.
+#
+
+#### Input extention ####
+# Defined at Main
+
+#### Suffixes rule ####
+.SUFFIXES: .$(INI) .$(INI)info .$(FSC)
+
+#### INCLUDE ####
+-include ${EOS_HOME}/tutorial/TIPS/MaskImage/Makefile.config
+-include ${EOS_HOME}/tutorial/TIPS/BackImage/Makefile.config
+
+#### Definition ####
+# Defined at Main
+
+# For ../NulImage/Makefile.config
+MASK_FILE_NAME=$(FILE_NAME)
+BACK_FILE_NAME=$(FILE_NAME)
+BACK_SIZE_X=$(MASK_SIZE_X)
+BACK_SIZE_Y=$(MASK_SIZE_Y)
+BACK_SIZE_Z=$(MASK_SIZE_Z)
+BACK_IN_VALUE=1
+BACK_VALUE=0
+
+#### Rules of the list created ####
+
+
+##### Commands #####
+InitialData::
+ touch $(FILE_NAME).$(INI);
+ rm $(FILE_NAME).$(INI);
+ ln -s $(INPUT_PATH) $(FILE_NAME).$(INI)
+
+InputInfo::
+ make $(FILE_NAME).$(INI)info;
+
+InputBackImage::
+ export IN_BACK=$(INI); \
+ export BACK=$(INI)pad; \
+ make BackImage;
+
+InputMaskImage::
+ export IN_MASK=$(INI)pad; \
+ make MaskImage;
+
+MaskBackImage::
+ export BACK_IN_SIZE_X=$$(head -1 $(FILE_NAME).$(INI)info | awk '{printf("%d", $$4)}'); \
+ export BACK_IN_SIZE_Y=$$(head -1 $(FILE_NAME).$(INI)info | awk '{printf("%d", $$5)}'); \
+ export BACK_IN_SIZE_Z=$$(head -1 $(FILE_NAME).$(INI)info | awk '{printf("%d", $$6)}'); \
+ export BACK_LENGTH=$$(tail -1 $(FILE_NAME).$(INI)info | awk '{printf("%f", $$4)}'); \
+ export IN_BACK=$(MASKBACK)ini; \
+ export BACK=$(MASKBACK); \
+ make IniBackImage; \
+ make BackImage;
+
+FSC::
+ make $(FILE_NAME).$(FSC);
+
+##### Commands(Input to Output) #####
+.$(INI).$(INI)info:
+ mrcInfo -i $*.$(INI) | head -5 > $*.$(INI)info
.SUFFIXES: .$(NUL) .$(IN_BACK) .$(BACK)
#### INCLUDE ####
--include ../NulImage/Makefile.config
+-include ${EOS_HOME}/tutorial/TIPS/NulImage/Makefile.config
#### Definition ####
# Defined at Main
-# For ../NulImage/Makefile.config
+# For TIPS/NulImage/Makefile.config
NUL_FILE_NAME=$(BACK_FILE_NAME)
NUL_SIZE_X=$(BACK_IN_SIZE_X)
NUL_SIZE_Y=$(BACK_IN_SIZE_Y)
##### Commands #####
IniBackImage::
+ export NUL=$(IN_BACK); \
make NulImage;
BackImage::
##### Commands(Input to Output) #####
-.$(NUL).$(IN_BACK):
- ln -s $*.$(NUL) $*.$(IN_BACK);
-
.$(IN_BACK).$(BACK):
- mrcImage3DPad -i $*.$(IN_BACK) -o $*.$(BACK) -M 1 -v $(BACK_VALUE) \
+ $(ENV_SWITCH)mrcImage3DPad -i $*.$(IN_BACK) -o $*.$(BACK) -M 1 -v $(BACK_VALUE) \
-Nx $(BACK_SIZE_X) -Ny $(BACK_SIZE_Y) -Nz $(BACK_SIZE_Z);
+++ /dev/null
-#
-# This is Sub Makefile for Create Bin Image that has same shape as Input.
-#
-
-#### Input extention ####
-# Defined at Main
-
-#### Suffixes rule ####
-.SUFFIXES: .$(IN_SBIN) .$(SBIN)
-
-#### INCLUDE ####
-
-#### Definition ####
-# Defined at Main
-
-
-#### Rules of the list created ####
-
-
-##### Commands #####
-ShapeBinImage::
- make $(SBIN_FILE_NAME).$(SBIN);
-
-
-##### Commands(Input to Output) #####
-.$(IN_SBIN).$(SBIN):
- mrcImageLowPassFilter -i $*.$(IN_SBIN) -o $*.$(SBIN)tmp -m $(SBIN_F_MODE) -hvp $(SBIN_VALUE);
- mrcImageBinalization -i $*.$(SBIN)tmp -o $*.$(SBIN) -m 32;
.SUFFIXES: .$(NUL) .$(ONE) .$(GRID)
#### INCLUDE ####
--include ../NulImage/Makefile.config
+-include ${EOS_HOME}/tutorial/TIPS/NulImage/Makefile.config
#### Definition ####
# Defined at Main
--- /dev/null
+/Users/teppeikinoshita/Eos/bin/X86MAC64/mrcInfo -i /Users/teppeikinoshita/Desktop/work/img/Input-1VOM-N.mrc
#
#### Input extention ####
-IN_SBIN=inimrc
-SBIN=sbin
+IN_MASK=inimrc
+MASK=mask
#### Suffixes rule ####
# Defined at Sub
#### Definition ####
### FileData
-SBIN_FILE_NAME=Input
+MASK_FILE_NAME=Input
# ImageSize
-SBIN_F_MODE=4
-SBIN_VALUE=0.0125
+MASK_F_MODE=4
+MASK_VALUE=0.0125
#### Rules of the list created ####
##### Commands #####
# Defined at Sub basically
all::
- make ShapeBinImage
+ make MaskImage
##### Commands(Input to Output) #####
# Defined at Sub
--- /dev/null
+#
+# This is Sub Makefile for Create Mask Image that has same shape as Input.
+#
+
+#### Input extention ####
+# Defined at Main
+
+#### Suffixes rule ####
+.SUFFIXES: .$(IN_MASK) .$(MASK) .$(MASK)tmp
+
+#### INCLUDE ####
+
+#### Definition ####
+# Defined at Main
+
+
+#### Rules of the list created ####
+
+
+##### Commands #####
+MaskImage::
+ make $(MASK_FILE_NAME).$(MASK);
+
+
+##### Commands(Input to Output) #####
+.$(IN_MASK).$(MASK)tmp:
+ mrcImageLowPassFilter -i $*.$(IN_MASK) -o $*.$(MASK)tmp -m $(MASK_F_MODE) -hvp $(MASK_VALUE);
+
+.$(MASK)tmp.$(MASK):
+ mrcImageBinalization -i $*.$(MASK)tmp -o $*.$(MASK) -m 32;