mrcImageROIs

From EosPedia
Revision as of 01:35, 30 July 2014 by Kinoshita (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

mrcImageROIs is Eos's Command that cuts out multiple ROIs required.

Algorithm

List of option

Main option

Option Essential/Optional Description Default
-i Essential Input: mrcImage NULL
-I Essential Input:ASCII(ROI Information) NULL
-o Optional Output: Montage file stdout(Standard output by default)
-S Optional Input: when the shrink ratio between Input file and image with ROI Information is different. NULL (No Shrink)
-w Optional Input: Width of all 0.0 (Depending to ROI Information)
-h Optional Input: Height of all 0.0 (Depending to ROI Information)
-m Optional Interpolation mode 0
-M Optional Output file's format 2

-m details

Setting of Interpolation method.

Value Description
0 Nearest neighbor method
1 Bi-linear interpolation method
2 Cubic convolution method
3 Polynomial interpolation method


-M details

Setting format of output file.

Value Description
0 Char
1 Short
2 Float


ROI Information file's format

OutputFileName Shape Parameter

Rectangle (4 corners)

OutFileName Rect   blx bly brx bry trx try tlx tly

Rectangle (Center and Size)

OutFileName Rect2  centerx centery width height 

Center and Radius

OutFileName Circle centerx centery radius 


Execution example

------Input file's image------

Input-mrcImageROIs.png

Min

Max
Mean
SD

SE

0

255
82.357
119.241

1.49051

Using image Added the Noise
  ------>
Inputnoise.r1-mrcImageROIs.png

Min

Max
Mean
SD

SE

0

255
95.3804
123.024

1.51882

------Infomation file's data------

Format pattern1: OutFileName Rect blx bly brx bry trx try tlx tly

*Setting as coordinates of rectangle
inputnoise-0000.roi Rect 6 6 26 6 26 26 6 26
inputnoise-0001.roi Rect 20 6 40 6 40 26 20 26
inputnoise-0002.roi Rect 40 6 60 6 60 26 40 26
inputnoise-0003.roi Rect 54 6 74 6 74 26 54 26
inputnoise-0004.roi Rect 6 20 26 20 26 40 6 40
inputnoise-0005.roi Rect 20 20 40 20 40 40 20 40
inputnoise-0006.roi Rect 40 20 60 20 60 40 40 40
inputnoise-0007.roi Rect 54 20 74 20 74 40 54 40
inputnoise-0008.roi Rect 6 40 26 40 26 60 6 60
inputnoise-0009.roi Rect 20 40 40 40 40 60 20 60
inputnoise-0010.roi Rect 40 40 60 40 60 60 40 60
inputnoise-0011.roi Rect 54 40 74 40 74 60 54 60
inputnoise-0012.roi Rect 6 54 26 54 26 74 6 74
inputnoise-0013.roi Rect 20 54 40 54 40 74 20 74
inputnoise-0014.roi Rect 40 54 60 54 60 74 40 74
inputnoise-0015.roi Rect 54 54 74 54 74 74 54 74

Format pattern2: OutFileName Rect2 centerx centery width height

*Setting center position, width and height.

Infomation2-mrcImageROIs.png

------Example of options only essential------

Case: Infomation file: Rect

Images of Infomation file's number are output
Inputnoise-0000.roi-mrcImageROIs.png Inputnoise-0001.roi-mrcImageROIs.png Inputnoise-0002.roi-mrcImageROIs.png Inputnoise-0003.roi-mrcImageROIs.png Inputnoise-0004.roi-mrcImageROIs.png Inputnoise-0005.roi-mrcImageROIs.png Inputnoise-0006.roi-mrcImageROIs.png Inputnoise-0007.roi-mrcImageROIs.png
Inputnoise-0008.roi-mrcImageROIs.png Inputnoise-0009.roi-mrcImageROIs.png Inputnoise-0010.roi-mrcImageROIs.png Inputnoise-0011.roi-mrcImageROIs.png Inputnoise-0012.roi-mrcImageROIs.png Inputnoise-0013.roi-mrcImageROIs.png Inputnoise-0014.roi-mrcImageROIs.png Inputnoise-0015.roi-mrcImageROIs.png

Case: Infomation file: Rect2

Inputnoise1-0000-m0.roi-mrcImageROIs.png

------Option -o------

Inputnoise.r1.out-mrcImageROIs.png

Min

Max
Mean
SD

SE

-168.927

160.828
-9.74867e-07
111.57

1.18799

------Option -S------

Example of 15th image from Infomation file

Case: -S=3
Inputnoise-0015-S3.roi-mrcImageROIs.png

Min

Max
Mean
SD

SE

0

255
99.9307
124.111

2.03461

Case: -S=5
Inputnoise-0015-S5.roi-mrcImageROIs.png

Min

Max
Mean
SD

SE

0

255
82.7682
119.056

1.17877

------Option -width,-height------

Case: -width=10,-height=10

Inputnoise-0015-w10h10.roi-mrcImageROIs.png

Min

Max
Mean
SD

SE

0

255
203.47
101.588

10.1588

Case: -width=50,-height=50

Inputnoise-0015-w50h50.roi-mrcImageROIs.png

Min

Max
Mean
SD

SE

0

255
84.2792
119.61

2.3922

------Option -M------

Using Infomation file: Rect

Case: M=0
Inputnoise.r1.M0-mrcImageROIs.png

Min

Max
Mean
SD

SE

0

165
99.2579
54.0903

0.575951

Case: M=1
Inputnoise-r1.M1-mrcImageROIs.png

Min

Max
Mean
SD

SE

0

65445
25411.9
31831.5

338.94

Case: M=2
Inputnoise.r1.out-mrcImageROIs.png

Min

Max
Mean
SD

SE

-168.927

160.828
-9.74867e-07
111.57

1.18799

------Option -m------

Using Infomation file: Rect2

Case: m=0
Inputnoise1-0000-m0.roi-mrcImageROIs.png

Min

Max
Mean
SD
SE

Sum

0

255
106.696
125.405
2.92352

196321

Case: m=1
Inputnoise1-0000-m1.roi-mrcImageROIs.png

Min

Max
Mean
SD
SE

Sum

0

255
106.881
105.188
2.4522

196661

Case: m=2
Inputnoise1-0000-m2.roi-mrcImageROIs.png

Min

Max
Mean
SD
SE

Sum

-65.1789

323.14
106.754
121.757
2.83848

196428

Case: m=3
Inputnoise1-0000-m3.roi-mrcImageROIs.png

Min

Max
Mean
SD
SE

Sum

-13045.1

399922
81934.6
82047.6
1912.75

1.5076e+08


References