|
21 | 21 | <a href="collections.html">collections</a><br> |
22 | 22 | <a href="concurrent.html">concurrent</a><br> |
23 | 23 | <a href="dataclasses.html">dataclasses</a><br> |
24 | | -<a href="imageio.v3.html">imageio.v3</a><br> |
25 | | -</td><td width="25%" valign=top><a href="math.html">math</a><br> |
26 | | -<a href="constitch.merging.html">constitch.merging</a><br> |
| 24 | +<a href="math.html">math</a><br> |
| 25 | +</td><td width="25%" valign=top><a href="constitch.merging.html">constitch.merging</a><br> |
27 | 26 | <a href="numpy.html">numpy</a><br> |
28 | 27 | <a href="pickle.html">pickle</a><br> |
29 | 28 | <a href="matplotlib.pyplot.html">matplotlib.pyplot</a><br> |
30 | | -</td><td width="25%" valign=top><a href="random.html">random</a><br> |
31 | | -<a href="skimage.html">skimage</a><br> |
| 29 | +<a href="random.html">random</a><br> |
| 30 | +</td><td width="25%" valign=top><a href="skimage.html">skimage</a><br> |
32 | 31 | <a href="sklearn.html">sklearn</a><br> |
33 | 32 | <a href="constitch.solving.html">constitch.solving</a><br> |
34 | 33 | <a href="sys.html">sys</a><br> |
35 | | -</td><td width="25%" valign=top><a href="time.html">time</a><br> |
36 | | -<a href="constitch.utils.html">constitch.utils</a><br> |
| 34 | +<a href="time.html">time</a><br> |
| 35 | +</td><td width="25%" valign=top><a href="constitch.utils.html">constitch.utils</a><br> |
37 | 36 | <a href="warnings.html">warnings</a><br> |
38 | 37 | </td></tr></table></td></tr></table><p> |
39 | 38 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
|
103 | 102 |
|
104 | 103 | <dl><dt><a name="BBox-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>Return str(self).</tt></dd></dl> |
105 | 104 |
|
| 105 | +<dl><dt><a name="BBox-area"><strong>area</strong></a>(self)</dt><dd><tt>Returns the area of the box, basically self.<strong>size</strong>.prod()<br> |
| 106 | +However if the size of the rectangle is negative in either or both<br> |
| 107 | +dimentions the result will be negative, indicating an invalid rectangle</tt></dd></dl> |
| 108 | + |
106 | 109 | <dl><dt><a name="BBox-as2d"><strong>as2d</strong></a>(self)</dt><dd><tt>Creates a copy of this box that only has two dimensions,<br> |
107 | 110 | dropping extra values.</tt></dd></dl> |
108 | 111 |
|
|
114 | 117 |
|
115 | 118 | <dl><dt><a name="BBox-copy"><strong>copy</strong></a>(self)</dt></dl> |
116 | 119 |
|
| 120 | +<dl><dt><a name="BBox-intersection"><strong>intersection</strong></a>(self, other)</dt><dd><tt>Returns the overlapping area between this box and the <a href="#BBox">BBox</a> other passed in<br> |
| 121 | +This may return boxes with negative size, which would indicate there is no overlap</tt></dd></dl> |
| 122 | + |
117 | 123 | <dl><dt><a name="BBox-overlaps"><strong>overlaps</strong></a>(self, otherbox)</dt><dd><tt>Whether this box overlaps with the other box. This does not consider<br> |
118 | 124 | sharing an edge as overlapping, to count as overlapping there must be at least<br> |
119 | 125 | one pixel that is contained in both images</tt></dd></dl> |
|
400 | 406 | Raises:<br> |
401 | 407 | KeyError: The specified constraint does not exist</tt></dd></dl> |
402 | 408 |
|
403 | | -<dl><dt><a name="CompositeConstraintSet-solve"><strong>solve</strong></a>(self, solver='mse', **kwargs)</dt><dd><tt>Solve the constraints to get a global position for each image<br> |
| 409 | +<dl><dt><a name="CompositeConstraintSet-solve"><strong>solve</strong></a>(self, solver='mae', **kwargs)</dt><dd><tt>Solve the constraints to get a global position for each image<br> |
404 | 410 | <br> |
405 | 411 | Args:<br> |
406 | 412 | solver (constitch.Solver or str): default constitch.LinearSolver()<br> |
|
714 | 720 |
|
715 | 721 | <dl><dt><a name="CompositeImage-pair_func"><strong>pair_func</strong></a>(self)</dt></dl> |
716 | 722 |
|
717 | | -<dl><dt><a name="CompositeImage-plot_scores"><strong>plot_scores</strong></a>(self, path, constraints=None, score_func=None, axis_size=12)</dt></dl> |
| 723 | +<dl><dt><a name="CompositeImage-plot_scores"><strong>plot_scores</strong></a>(self, path, constraints=None, score_func=None, axis_size=12, constraint_multiplier=1)</dt></dl> |
718 | 724 |
|
719 | 725 | <dl><dt><a name="CompositeImage-print_mem_usage"><strong>print_mem_usage</strong></a>(self)</dt></dl> |
720 | 726 |
|
|
1162 | 1168 | Raises:<br> |
1163 | 1169 | KeyError: The specified constraint does not exist</tt></dd></dl> |
1164 | 1170 |
|
1165 | | -<dl><dt><a name="SubCompositeConstraintSet-solve"><strong>solve</strong></a>(self, solver='mse', **kwargs)</dt><dd><tt>Solve the constraints to get a global position for each image<br> |
| 1171 | +<dl><dt><a name="SubCompositeConstraintSet-solve"><strong>solve</strong></a>(self, solver='mae', **kwargs)</dt><dd><tt>Solve the constraints to get a global position for each image<br> |
1166 | 1172 | <br> |
1167 | 1173 | Args:<br> |
1168 | 1174 | solver (constitch.Solver or str): default constitch.LinearSolver()<br> |
|
1360 | 1366 |
|
1361 | 1367 | <dl><dt><a name="SubCompositeImage-html_summary"><strong>html_summary</strong></a>(self, path, score_func=None)</dt></dl> |
1362 | 1368 |
|
1363 | | -<dl><dt><a name="SubCompositeImage-plot_scores"><strong>plot_scores</strong></a>(self, path, constraints=None, score_func=None, axis_size=12)</dt></dl> |
| 1369 | +<dl><dt><a name="SubCompositeImage-plot_scores"><strong>plot_scores</strong></a>(self, path, constraints=None, score_func=None, axis_size=12, constraint_multiplier=1)</dt></dl> |
1364 | 1370 |
|
1365 | 1371 | <dl><dt><a name="SubCompositeImage-print_mem_usage"><strong>print_mem_usage</strong></a>(self)</dt></dl> |
1366 | 1372 |
|
|
0 commit comments