Debian Codegraph @

www/multispectral-imagery/index.html

raw symbols ◀ ▶ SCIP
2 Debian patches touch this file
1
2
3 <!DOCTYPE html>
4 <html lang="en" data-bs-theme="dark">
5
6
7 <head>
•8 <meta charset="utf-8" />
9 <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
10 <title>ImageMagick | Multispectral Imagery</title>
•11 <meta name="description" content="" />
12 <link rel="canonical" href="index.html" />
13 <meta name="robots" content="index, follow" />
14 <meta name="theme-color" content="#000000" />
15 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
•16 <link rel="shortcut icon" href="../image/wand.png" type="image/png" />
17 <link rel="apple-touch-icon" href="../image/wand.png" type="image/png" />
18 <link rel="preconnect" href="https://localhost/" />
19 <link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" as="style" crossorigin="anonymous" />
20 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" crossorigin="anonymous" />
21 <!-- Accessibility Enhancement -->
22 <style>
23 html {
24 scroll-padding-top: 70px;
25 }
26
27 a.nav-link:hover,
28 a.dropdown-item:hover {
29 color: #ffc107 !important;
30 text-shadow: 0px 2px 4px rgba(255, 193, 7, 0.8);
31 }
32
33 .btn-outline-warning {
34 color: #cd7f32;
35 border-color: #cd7f32;
36 }
37
38 .navbar-brand {
39 color: #d4af37;
40 transition: color 0.3s ease, text-shadow 0.3s ease;
41 }
42
43 .navbar-brand:hover {
44 color: #e9c03d;
45 text-shadow: 0px 2px 4px rgba(203, 163, 120, 0.6);
46 }
47
48 :root {
49 --bs-code-color: revert;
50 }
51 </style>
52 <!-- Open Graph Meta Tags -->
•53 <meta property="og:title" content="ImageMagick | Multispectral Imagery" />
54 <meta property="og:description" content="" />
•55 <meta property="og:image" content="https://imagemagick.org/image/logo.png" />
56 <meta property="og:logo" content="https://imagemagick.org/image/logo.png" />
57 <meta property="og:url" content="https://imagemagick.org/multispectral-imagery/" />
•58 <meta property="og:type" content="website" />
59 <meta property="og:site_name" content="ImageMagick" />
60 <meta property="og:locale" content="en_us" />
61 <!-- Twitter Card Meta Tags -->
•62 <meta name="twitter:card" content="summary_large_image" />
63 $site=strtolower("ImageMagick");
•64 <meta name="twitter:site" content="@imagemagick" />
65 <meta name="twitter:creator" content="@imagemagick" />
66 <meta name="twitter:title" content="ImageMagick | Multispectral Imagery" />
•67 <meta name="twitter:description" content="$this- />description" />
68 <meta name="twitter:image" content="https://imagemagick.org/image/logo.png" />
•69 <meta name="twitter:image:alt" content="ImageMagick logo and tag line" />
70 <!-- JSON-LD Structured Data -->
71 <script type="application/ld+json">
72 {
73 "@context": "https://schema.org",
74 "@type": "SoftwareApplication",
75 "name": "ImageMagick",
76 "url": "ImageMagick | Multispectral Imagery",
77 "image": "https://imagemagick.org/image/logo.png",
78 "description": "$this->description",
79 "applicationCategory": "Multimedia",
80 "operatingSystem": "Windows, macOS, Linux, Unix",
81 "softwareVersion": "7.1.2-27",
82 "license": "https://imagemagick.org/license/",
83 "creator": {
84 "@type": "Organization",
85 "name": "ImageMagick Studio LLC",
86 "url": "https://imagemagick.org"
87 },
88 "keywords": [
89 "".ucfirst($title)."",
90 "image processing software",
91 "image conversion tool",
92 "batch image editing",
93 "open-source image editor",
94 "ImageMagick command-line",
95 "resize images ImageMagick",
96 "crop and rotate images",
97 "ImageMagick tutorial",
98 "ImageMagick automation",
99 "ImageMagick for developers",
100 "ImageMagick CLI",
101 "ImageMagick filters and effects",
102 "ImageMagick scripting",
103 "ImageMagick API integration"
104 ],
105 "sameAs": [
106 "https://github.com/ImageMagick",
107 "https://x.com/imagemagick"
108 ],
109 "offers": {
110 "@type": "Offer",
111 "price": "0.00",
112 "priceCurrency": "USD"
113 }
114 }
115 </script>
116 <!-- Google Custom Search -->
•117 <script async="true" src="https://localhost/cse.js?cx=8720b81722164487b"></script>
118 <script async="true" src="https://localhost/pagead/js/adsbygoogle.js?client=ca-pub-3129977114552745" crossorigin="anonymous"></script>
119 </head>
120
121 <body>
122 <script>
123 function setTheme(theme) {
124 localStorage.setItem('theme', theme);
125 updateThemeIcon(theme);
126 document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? getSystemTheme() : theme);
127 }
128 function getSystemTheme() {
129 return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
130 }
131 function updateThemeIcon(theme) {
132 const iconMap = {
133 light: '☀️',
134 dark: '🌙',
135 auto: '🌓'
136 };
137 document.getElementById('currentThemeIcon').textContent = iconMap[theme] || '🌓';
138 }
139 document.addEventListener('DOMContentLoaded', () => {
140 const savedTheme = localStorage.getItem('theme') || 'auto';
141 setTheme(savedTheme);
142 });
143 </script>
144 <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
145 <div class="container-fluid">
146 <a class="navbar-brand fw-bold" href="../index-2.html" title="ImageMagick">ImageMagick</a>
147 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#magick-navbars" aria-controls="magick-navbars" aria-expanded="false" aria-label="Toggle navigation">
148 <span class="navbar-toggler-icon"></span>
149 </button>
150
151 <div class="collapse navbar-collapse" id="magick-navbars">
152 <ul class="navbar-nav me-auto">
153 <li class="nav-item">
•154 <a class="nav-link" href="../download/index.html">Download</a>
155 </li>
156 <li class="nav-item">
•157 <a class="nav-link" href="../command-line-tools/index.html">Tools</a>
158 </li>
159 <li class="nav-item">
•160 <a class="nav-link" href="../command-line-processing/index.html">CLI</a>
161 </li>
162 <li class="nav-item">
•163 <a class="nav-link" href="../develop/index.html">Develop</a>
164 </li>
165 <li class="nav-item">
166 <a class="nav-link" rel="noopener noreferrer" target="_blank" href="https://github.com/ImageMagick/ImageMagick/discussions">Community</a>
167 </li>
168 </ul>
169 <ul class="navbar-nav ms-auto">
170 <li class="nav-item ms-3">
171 <form class="d-flex form-inline" action="https://imagemagick.org/multispectral-imagery/">
•172 <input class="form-control me-2" type="text" name="q" placeholder="Search site..." aria-label="Search" />
173 <button class="btn btn-outline-warning" type="submit" name="sa">Search</button>
174 </form>
175 </li>
176 <li class="nav-item dropdown ms-3">
177 <a class="nav-link dropdown-toggle" href="#" id="themeDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
178 <span id="currentThemeIcon">🌓</span>
179 </a>
180 <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="themeDropdown">
181 <li><a class="dropdown-item" href="#" onclick="setTheme('light')">☀️ Light</a></li>
182 <li><a class="dropdown-item" href="#" onclick="setTheme('dark')">🌙 Dark</a></li>
183 <li><a class="dropdown-item" href="#" onclick="setTheme('auto')">🌓 Auto</a></li>
184 </ul>
185 </li>
186 </ul>
187 </div>
188 </div>
189 </nav>
190
191 <div class="col-lg-8 mx-auto text-body-secondary pt-5 pt-lg-5">
192 <header class="d-flex align-items-center pb-3 mb-5 border-bottom">
193 <div class="mt-3 ms-3">
194 <a href="../index-2.html" class="text-decoration-none">
195 <h1 class="fs-2 mb-1 display-5">Multispectral Imagery</h1>
196 </a>
197 <h2 class="fs-5 text-muted h4">ImageMagick</h2>
198 </div>
199 </header>
200
201 <main role="main" class="container">
202 <div class="row g-5">
203 <div class="col-md-9">
204 <div>
205 <p class="lead">Multispectral imagery refers to images that are captured using multiple bands of the electromagnetic spectrum, beyond just the visible light spectrum. This means that they capture data across a wider range of wavelengths, from ultraviolet to infrared.</p>
206 <p>By capturing data across multiple spectral bands, multispectral imagery can provide additional information about the objects or scenes being imaged, such as their composition, temperature, and vegetation health. This information can be used for a wide range of applications, including agriculture, environmental monitoring, disaster response, and military surveillance.</p>
207 <p>Multispectral imagery is often captured using specialized sensors on satellites, drones, or aircraft. The data is then processed using specialized software to create images that display the information captured in each spectral band.</p>
208 <p>Overall, multispectral imagery provides a powerful tool for analyzing and understanding the world around us, allowing us to gain insights that would be impossible to obtain using visible light imagery alone.</p>
209 <h4>Multispectral Support in ImageMagick</h4>
210 <p>ImageMagick supports multispectral images where all channels have the same dimensions and number of pixels as the original image. However, not all image formats support multispectral images. PSD, TIFF, MIFF, MPC, and <a href="http://im.snibgo.com/fmttxt.htm">FTXT</a> have full support for multispectral images up to 31 bands with 21 meta channels. If you build ImageMagick with the configure script <code>--enable-64bit-channel-masks</code> option, you can process 62 band multispectral images with up to 52 meta channels.</p>
211 <p>We call image channels beyond the standard RGB(A) or CMYK(A) channels, "meta" channels. We label them as "meta", "meta1", "meta2", etc.. Meta channels are treated the same as any other channel meaning they can be read, written, and operated upon-- e.g., resized, gamma adjusted, etc.</p>
212 <h5>Create a Multispectral Image</h5>
213 <p>Begin with a multispectral image, typically in the TIFF or PSD format. If you don't have one, you can create your own. In our example, we create a single CMYK pixel with two meta channels. Stuff this in a file titled <code>multiMeta.txt</code>:</p>
214 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>0,0: 10,20,30,40,50,60</code></pre>
215 <p>Let's convert that to the TIFF image format:</p>
216 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><samp>$ magick -size 1x1 -colorspace CMYK -define ftxt:format="\x,\y:\c\n" -define ftxt:hasalpha=false -define ftxt:nummeta=2 ftxt:multiMeta.txt multiMeta.tif</samp></pre>
•217 <p>Let confirm that worked as expected:</p>
218 <pre class="overflow-auto p-3 mb-2 text-body-secondary bg-body-tertiary" style="max-height:75svh;"><samp>$ identify -verbose multiMeta.tif
219 Image:
220 Filename: multiMeta.tif
221 Permissions: rw-------
222 Format: TIFF (Tagged Image File Format)
223 Mime type: image/tiff
224 Class: DirectClass
225 Geometry: 1x1+0+0
226 Units: PixelsPerInch
227 Colorspace: CMYK
228 Type: ColorSeparation
229 Endianness: LSB
230 Depth: 16-bit
231 Channels: 6.2
232 Channel depth:
233 Cyan: 16-bit
234 Magenta: 16-bit
235 Yellow: 16-bit
236 Black: 16-bit
237 Meta channel[0]: 16-bit
238 Meta channel[1]: 16-bit
239 Channel statistics:
240 Pixels: 1
241 Cyan:
242 min: 10 (0.00015259)
243 max: 10 (0.00015259)
244 mean: 10 (0.00015259)
245 median: 10 (0.00015259)
246 standard deviation: 0 (0)
247 kurtosis: -3
248 skewness: 0
249 entropy: 0
250 Magenta:
251 min: 20 (0.00030518)
252 max: 20 (0.00030518)
253 mean: 20 (0.00030518)
254 median: 20 (0.00030518)
255 standard deviation: 0 (0)
256 kurtosis: -3
257 skewness: 0
258 entropy: 0
259 Yellow:
260 min: 30 (0.000457771)
261 max: 30 (0.000457771)
262 mean: 30 (0.000457771)
263 median: 30 (0.000457771)
264 standard deviation: 0 (0)
265 kurtosis: -3
266 skewness: 0
267 entropy: 0
268 Black:
269 min: 40 (0.000610361)
270 max: 40 (0.000610361)
271 mean: 40 (0.000610361)
272 median: 40 (0.000610361)
273 standard deviation: 0 (0)
274 kurtosis: -3
275 skewness: 0
276 entropy: 0
277 Meta channel[0]:
278 min: 50 (0.000762951)
279 max: 50 (0.000762951)
280 mean: 50 (0.000762951)
281 median: 50 (0.000762951)
282 standard deviation: 0 (0)
283 kurtosis: -3
284 skewness: 0
285 entropy: 0
286 Meta channel[1]:
287 min: 60 (0.000915541)
288 max: 60 (0.000915541)
289 mean: 60 (0.000915541)
290 median: 60 (0.000915541)
291 standard deviation: 0 (0)
292 kurtosis: -3
293 skewness: 0
294 entropy: 0
295 Image statistics:
296 Overall:
297 min: 10 (0.00015259)
298 max: 60 (0.000915541)
299 mean: 35 (0.000534066)
300 median: 35 (0.000534066)
301 standard deviation: 0 (0)
302 kurtosis: -1.79762
303 skewness: 4.44476e-15
304 entropy: 0
305 Total ink density: 0.15259%
306 Colors: 1
307 Histogram:
308 1: (10,20,30,40) #000A0014001E0028 cmyk(0.0389105,0.077821,0.116732,0.155642)
309 Rendering intent: Perceptual
310 Gamma: 0.454545
311 Chromaticity:
312 red primary: (0.64,0.33)
313 green primary: (0.3,0.6)
314 blue primary: (0.15,0.06)
315 white point: (0.3127,0.329)
316 Matte color: grey74
317 Background color: white
318 Border color: srgb(223,223,223)
319 Transparent color: black
320 Interlace: None
321 Intensity: Undefined
322 Compose: Over
323 Page geometry: 1x1+0+0
324 Dispose: Undefined
325 Iterations: 0
326 Compression: None
327 Orientation: TopLeft
328 Properties:
329 date:create: 2023-03-12T11:38:42+00:00
330 date:modify: 2023-03-12T11:38:42+00:00
331 date:timestamp: 2023-03-12T11:38:56+00:00
332 signature: c51848f16d296f7c95be14404cc582f49db6fd33f31b544a2ce10e440b3747b3
333 tiff:alpha: unspecified
334 tiff:endian: lsb
335 tiff:photometric: separated
336 tiff:rows-per-strip: 1
337 Artifacts:
338 verbose: true
339 Tainted: False
340 Filesize: 306B
341 Number pixels: 1
342 </samp></pre>
•343 <p>Notice the channel depth and statistics associated with the two meta channels.</p>
344 <h5>Working with Multispectral Images</h5>
•345 <p>Meta channels are treated the same as any other channel meaning they can be read, written, and operated upon-- e.g., resized, gamma adjusted, etc.. Here, we replace the first channel with the contents of the meta channel:</p>
346 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><pre><samp>$ magick multiMeta.tif -channel-fx 'meta1=>cyan' multiMeta-1.tif</samp></pre></pre>
•347 <p>The original cyan channel has an intensity of 10. It's now, per the channel FX instructions, 50.</p>
348 <p>And in this example, we create two meta channels:</p>
349 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><pre><samp>$ magick lena.png \( mandril3.jpg -colorspace gray \) -channel-fx '| gray=>meta' \( zelda1.jpg -colorspace gray \) -channel-fx '| gray=>meta1' meta.tif</samp></pre></pre>
350 <p>In this example, we blend two meta channels into a single alpha channel:</p>
351 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><pre><samp>$ magick in.tiff -alpha opaque \( +clone -set colorspace sRGB -channel-fx "meta0=>red meta1=>green" \) -channel A -fx "(v.r+v.g)/2" +channel out.tiff</samp></pre></pre>
352 <br/>
353 <h5>Writing Multispectral Images</h5>
354 <p>You can preserve multispectral images by writing them to a format that supports meta channels such as TIFF or PSD. If you write to other image formats that do not support multisprectal images, the channels are not preserved and instead lost-- e.g., PNG. In this example, we read, resize, and write a multispectral image:</p>
355 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><pre><samp>$ magick multiMeta.tif -resize 50% resizedMeta.tif</samp></pre></pre>
356 </div>
357
358 </div>
359 <div class="col-md-3">
360 <div class="container text-center my-3">
361 <a href="../image/wizard.png" rel="noopener noreferrer" target="_blank">
•362 <img alt="The Tao of the Spiritual Warrior" class="img-fluid img-thumbnail" height="1468" loading="lazy" src="../image/wizard.png" width="1104" />
363 </a>
364 <p class="mt-2"><iframe src="https://github.com/sponsors/ImageMagick/button" title="Sponsor ImageMagick" height="35" width="107" style="border: 0;"></iframe></p>
365 </div>
366 <div class="container text-center my-3">
•367 <script async="true" src="https://localhost/pagead/js/adsbygoogle.js?client=ca-pub-3129977114552745"
368 crossorigin="anonymous"></script>
369 <!-- Banner Ad -->
370 <ins class="adsbygoogle"
371 style="display:block"
372 data-ad-client="ca-pub-3129977114552745"
373 data-ad-slot="1083537442"
374 data-ad-format="auto"
375 data-full-width-responsive="true"></ins>
376 <script>
377 (adsbygoogle = window.adsbygoogle || []).push({});
378 </script>
379 </div>
380 </div>
381 </div>
382 <a aria-label="About ImageMagick" class="btn btn-outline-warning mt-3" href="../index-2.html">About ImageMagick</a>
383 </main><!-- /.container -->
384 <footer class="text-center pt-5 my-5 text-body-secondary border-top">
385 <div class="container-fluid">
386 <a href="../security-policy/index.html">Security</a> •
387 <a href="../news/index.html">News</a>
•388
389 <a href="#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../image/wand.ico" /></a>
390
391 <a href="../links/index.html">Related</a> •
392 <a href="../sitemap/index.html">Sitemap</a>
•393 <br />
394 <a href="../support/index.html">Sponsor</a> •
395 <a href="../cite/index.html">Cite</a> •
396 <a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
397 <a href="https://github.com/ImageMagick/ImageMagick/discussions">Contact Us</a>
•398 <br />
399 <a href="https://github.com/imagemagick/imagemagick" rel="noopener noreferrer" target="_blank" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 512 499.36" width="2%" height="2%" role="img" focusable="false">
400 <title>GitHub</title>
401 <path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z" />
402 </svg></a> •
403 <a href="https://twitter.com/imagemagick" rel="noopener noreferrer" target="_blank" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 300 300" width="2%" height="2%" role="img" focusable="false">
404 <title>Twitter</title>
405 <path d="M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66" />
406 </svg></a>
•407 <br />
408 <small>Copyright © 1999 ImageMagick Studio LLC</small>
409 </div>
410 </footer>
411 <div style="visibility: hidden;">
412 <div class="gcse-search"></div>
413 </div>
414 </div>
415
416 <!-- Javascript assets -->
417 <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
418 </body>
419
420
421 </html>