1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title>Balancing the mosaic</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<!-- 3,html -->
<meta name="src" content="nipguide.tex">
<link rel="stylesheet" type="text/css" href="nipguide.css">
</head><body
>
<!--l. 353--><div class="crosslinks"><p class="noindent">[<a
href="nipguidese7.html" >next</a>] [<a
href="nipguidese5.html" >prev</a>] [<a
href="nipguidese5.html#tailnipguidese5.html" >prev-tail</a>] [<a
href="#tailnipguidese6.html">tail</a>] [<a
href="nipguidech3.html#nipguidese6.html" >up</a>] </p></div>
<h3 class="sectionHead"><span class="titlemark">3.3 </span> <a
id="x13-240003.3"></a>Balancing the mosaic</h3>
<!--l. 354--><p class="noindent" ><a name="nip_label_sec:balance"></a>
<!--l. 356--><p class="indent" > Like assembly, mosaic balancing is normally automatic
and painless. You may sometimes have problems if the
image is very large, or needs dramatic corrections:
<ul class="itemize1">
<li class="itemize">Each VIPS image file has an associated history,
recording the operations on that image since it was
loaded from a file. You can view an image’s history
by clicking on <span
class="phvr7t-x-x-80">View </span>/ <span
class="phvr7t-x-x-80">Image header </span>in an image view
window.
<!--l. 367--><p class="noindent" >The automatic balancer uses the history to work
out how you built your mosaic. The balancer
knows about left-right and top-bottom joins, but
nothing else! If the history has other stuff recorded
in there, you’ll see unhelpful error messages like
<span
class="phvr7t-x-x-80">unable to open tmp/xxx.v</span>, or <span
class="phvr7t-x-x-80">more than one root</span>.
<!--l. 373--><p class="noindent" >If you need to perform corrections to any of your
sub-images, do them, save the image, load it again,
and then build the mosaic. This will make sure the
history of the image you are trying to balance only
contains mosaic operations.
</li>
<li class="itemize">On some systems the balancer can run out of
memory or out of file descriptors on very large
mosaics. If your mosaic is made up of more than a
few hundred images, and you are having balancing
problems you may have hit one of these limits.
<!--l. 384--><p class="noindent" >The solution (as with mosaic assembly) is to
assemble and balance your mosaic in smaller
pieces.
</li>
<li class="itemize">If your grey-card correction is not accurate, you
will find that the balancer will magnify any
problems you have.
<!--l. 391--><p class="noindent" >Suppose your lighting and camera set-up always
produces images which are brighter on the right
than the left, and suppose, due to some problem with your grey-card correction, this effect is not
completely removed. You will find that when you
balance a mosaic, the small differences between
left and right edges of your sub-images will have
been smoothed out, but they will have caused a
large difference in brightness between the extreme
left edge of your final image and the extreme right.
<!--l. 399--><p class="noindent" ><span
class="phvr7t-x-x-80">nip2 </span>includes several functions which can help to
fix this problem, the most commonly used being:
<span
class="phvr7t-x-x-80">Tasks </span>/ <span
class="phvr7t-x-x-80">Mosaic </span>/ <span
class="phvr7t-x-x-80">Tilt Brightness </span>/ <span
class="phvr7t-x-x-80">Left to Right </span>and <span
class="phvr7t-x-x-80">Tasks</span>
/ <span
class="phvr7t-x-x-80">Mosaic </span>/ <span
class="phvr7t-x-x-80">Tilt Brightness </span>/ <span
class="phvr7t-x-x-80">Top to Bottom</span>.
</li></ul>
<!--l. 405--><div class="crosslinks"><p class="noindent">[<a
href="nipguidese7.html" >next</a>] [<a
href="nipguidese5.html" >prev</a>] [<a
href="nipguidese5.html#tailnipguidese5.html" >prev-tail</a>] [<a
href="nipguidese6.html" >front</a>] [<a
href="nipguidech3.html#nipguidese6.html" >up</a>] </p></div>
<!--l. 405--><p class="indent" > <a
id="tailnipguidese6.html"></a>
</body></html>
|