MSI-Ptolemy API information for developers » History » Version 2
Anchi Cheng, 03/15/2022 05:14 PM
1 | 1 | Anchi Cheng | h1. MSI-Ptolemy API information for developers |
---|---|---|---|
2 | |||
3 | h2. Square_Finding node: |
||
4 | |||
5 | The square finding should operate on each gr image tile at its saved mrc dimension. |
||
6 | |||
7 | # Shell script to call and specified in Blobs settings. |
||
8 | # Output json file is a list of square blob founds by the algorithm. For each item, it requires the following key, value pairs. |
||
9 | |||
10 | h3. area: integer |
||
11 | |||
12 | 2 | Anchi Cheng | > number of pixels the square opening on the gr tile image. |
13 | 1 | Anchi Cheng | |
14 | 2 | Anchi Cheng | h3. center: [float, float] |
15 | 1 | Anchi Cheng | |
16 | 2 | Anchi Cheng | > The coordinate of the square opening center [col, row] with [0,0] at the start of the data block in the mrc image. |
17 | 1 | Anchi Cheng | |
18 | 2 | Anchi Cheng | h3. score: float |
19 | 1 | Anchi Cheng | |
20 | 2 | Anchi Cheng | > The score of the blob as goodness of the blob as a good square. The higher the number the better. |
21 | 1 | Anchi Cheng | |
22 | 2 | Anchi Cheng | h3. brightness: float |
23 | 1 | Anchi Cheng | |
24 | 2 | Anchi Cheng | > Mean intensity value or equivalent in the square blob. This is saved as a part of statistics but not used for filtering. |
25 | |||
26 | h3. vertices: [[float, float], [float, float], [float, float], .....] |
||
27 | |||
28 | > convex-hull vertices used by leginon to determine if a cursor position is within the square blob. Same coordinate system as centers. |
||
29 | |||
30 | h2. Example json: |
||
31 | |||
32 | <pre> |
||
33 | [{"vertices": [[600.4, 304.7], [502.5, 334.8], [532.7, 432.7], [630.5, 402.6]], "center": [566, 368], "area": 10488.9, "brightness": 194.2, "score": 0.3902}, |
||
34 | {"vertices": [[464.1, 568.5], [370.0, 597.5], [399.2, 692.5], [493.3, 663.5]], "center": [431, 630], "area": 9785.5, "brightness": 193.7, "score": 0.2530}] |
||
35 | </pre> |