Open access peer-reviewed chapter

Using the Target-Visualization Method to Process Hyperspectral Images

By Tatiana A. Sheremeteva, Gennadiy N. Filippov and Andrey M. Malov

Submitted: August 14th 2017Reviewed: November 6th 2017Published: August 1st 2018

DOI: 10.5772/intechopen.72249

Downloaded: 517


Processing hyperspectral images allows you to decode images and recognize objects in the scene on the base of analysis of spectrums. In some problems, information about the spectra may not be sufficient. In this case, visualization of data sets may use, for object recognition, by use additional non-formalized external attributes (for example, indicating the relative position of objects). Target visualization is a visualization adapted to a specific task of application. The method discussed in this chapter uses a way to visualize a measure of similarity to the sample. As a result of the transformation, the hyperspectral (multichannel) image is converted into a single-channel synthesized image in grayscale, on which the objects of interest for the problem under consideration are selected. By changing the brightness and contrast of the synthesized image, it is possible to interactively adjust the results of automatic processing.


  • hyperspectral image
  • visualization
  • interpretation
  • detection
  • interactive participation

1. Introduction

Hyperspectral image (HSI) is a set of images of one object (scene, slide, field of view, etc.), that match different narrow wavelength subranges, provides powerful tool for detection and recognition of objects under surveying.

Hyperspectral data use is a serious problem caused by need of processing of huge amount of information (tens and hundreds gigabytes). Most of hyperspectral image recognition algorithms are highly resource-intensive, especially when striving to provide full classification of hyperspectral information. Information about spectra may be insufficient for some tasks. In those cases acceptable interpretation cannot be realized without human assistance. The data visualization facilitates making decision for an expert-user allowing him to use unobvious signs obtained from experience. Watching all of the band images from HSI (HSI can consist of more than 300 spectral bands) is a labor-intensive and inefficient task. Segmentation methods are used to represent visual information in more compact view. These methods mark out homogeneous regions in the image that allows representing hyperspectral image in view of some synthesized image, for example, in pseudo-color, which facilitates visual perception. However, only in some cases a criterion of true segmentation exists. Visualization only allows us to reveal errors. And for the result correction, we need to process all over again using altered parameters of the algorithm. When solving a certain task, not all of the objects are of equal interest. Obviously, the visualization should be done so that the objects of interest were represented in the result image in the best way, but the details that prevent from good visual perception were eliminated. I.e. visualization should be targeted. Such adaptation of data processing to a specific practical task can be realized by means of target visualization method. As a result of such transformation the information contained in HSI is represented in the synthesized image in grayscale where the brightness range is concentrated on the details of the image that are of interest for user. The method combines mathematical computation speed with visual assessment and possibility to correct interpretation process interactively. In addition, the useful information is appreciably compressed, that is very important for remote sensing tasks.


2. Target visualization of HSI

Target visualization converts a set of images that constitute a hyperspectral image into a synthesized single-channel image that provides a visual representation of the data for a particular application. To perform the target visualization of HSI the image transform method is used. The method visualizes measure of similarity to a sample within a space of attributes [1, 2, 7].

Hyperspectral image, or so-called hypercube, is a collection of pictures of a single object that correspond to different narrow subranges of wavelengths,


where k – the spectral subrange number; (m, n) – the spatial coordinates of an image pixel; M – the number of lines in the image; N – the number of columns; Bkmn – the brightness value at point (m, n) in the kth frequency subrange.

As the attributes, that distinguish the objects of interest, the spectral characteristics are used. Moreover, can be used other characteristics that are used in tasks on image classification [3, 4], such as: features of brightness, texture, gradient and characteristics of adjacency. The values of the characteristics used for each pixel, can be obtained a priori or via image pre-processing.

Thus, each pixel of the HSI with certain spatial coordinates has its coordinates within a feature space. In the visualization method for each task on HSI processing a decision function is formed within a set of feature values. The decision function quantitatively determines belonging of the pixel to the object of interest. Then the result image is synthesized. Pixel brightness of this image conforms to the decision function value. Changing brightness range in the obtained image and using his notion about the object being studied, user can interactively set threshold to mark out the object of interest.

The main problem of the method is to choose a decision function that corresponds to a specific applied task. Some of tasks and the choice of the decision function for them are listed as an example below:

  1. To pick out objects on the HSI that have spectral characteristics that are similar to characteristics Ok from a spectral library.

  2. To pick out objects on the HSI that are similar to the characteristics of an object-sample with specified spatial coordinates—i.e., sample Ok is specified by spatial coordinates (m, n): Ok = Bkmn.

  3. To pick out objects which have the most widely represented spectra on the HSI (endmembers).

  4. To pick out objects which have the most uncommon spectra.

  5. To pick out boundaries of homogeneous regions on the HSI.

  6. To pick out objects on thematic images—i.e., on images obtained by using mathematical operations with spectral bands [5].

The suitable decision function for the tasks 1–5 is the measure of similarity to the sample [1, 2]. Similarity can be specified by one of the measures of closeness of the vectors used for HSI classification, such as:

  • the Euclidean distance


  • the distance measured by the spectral angle


  • the maximum distance


As a sample, multidimensional feature vector is chosen from set of points of the attribute space. A sample can be chosen either by specifying of a priori known feature values or by pointing to one of the discriminated objects.

Some set of vectors over region E of the feature space can be chosen as a sample, too. In this case it is possible to use the Mahalanobis distance—i.e., the distance given by the expression:


where O¯—the mean of set E, and C—a covariant matrix of set E.

For task 6, the suitable decision function is


where fBkmn—some function of the spectral characteristics, used when synthesizing index images, and Por—the fixed a priori value of the index.

If an information on probability distribution of attributes of the sample is available, a measure based on conditional probabilities can be used (Bayesian approach). Any of a priori estimated characteristics of studied objects can be participant in forming of a measure.

By choosing of a sample and a measure of similarity we can adapt visual representation to a specified task on interpretation. Choice of a sample can be based on:

  • visual analysis of some of the presented pictures;

  • a priori information about the object of interest location;

  • an information about the spectral features of the required object from a specially created database.

The value of the decision function (similarity measure value) is brightness of the pixel on the synthesized image. The largest brightness value is assigned to the pixels which are closest to the sample within the attribute space. The other pixels have brightness value according to their distance from the sample. By representing the matrix of the similarity measure in gradations of gray, we obtain a visualization of the HSI adapted to the applied task. Since the brightness of each image pixel characterizes its similarity to the object of interest, by visually choosing the brightness threshold and by varying the contrast, a specialist can discriminate the object that interests him by using his knowledge of the object and accumulated experience.

Various versions of the visualization of the same scene can be obtained by selecting various samples and similarity measures. This allows the observer to analyze the imaged scene by changing samples and similarity measures. Such a tool can be compared to a magnifying glass in feature space (on synthesized images various parts of the featurespace can be detailed).

Target visualization used in various application areas of image processing, has a specificity that is determined by the area of the study and conditions of registration of images.

3. Target visualization of biomedical images

Computer image analysis is one of the relatively new medical technologies that are of great importance in medical research and diagnosing diseases. Due to the complexity of biomedical images, it is almost impossible to completely replace the human brain in processing them. At the same time, the method of target visualization of images allows, with the participation of a qualified user, to quickly identify and measure objects of interest.

An example of the visualization of hyperspectral images with different samples is shown in Figures 1 and 2. The source data was obtained using autofluorescent microscopy in the spectral range from 420 to 750 nm with an interval of 6 nm. (The image represents Convallariarhizome section, acquisition with the Leica TCS SP5. The data were provided us by Biotechnologisches Zentrum der TU Dresden). Figure 1 shows four of the 50 images of the specimen as an example of the initial data.

Figure 1.

Sample 4 of 50 raw pictures from the HSI of micropreparation in the wavelength range 420–750 nm used for processing. (a) Wavelength of 462 nm, (b) 606 nm, (c) 654 nm, and (d) 702 nm.

Figure 2.

The image (a) was obtained by transforming the 50 source images using three appropriate samples (b).

The capabilities of visualizing multispectral images are demonstrated in Figure 2. The results obtained by transforming the 50 initial images using various samples are shown in this figure. The samples are represented in the form of graphs of spectra under the transformed images.

Another example of using visualization of hyperspectral images of biomedical theme. This example demonstrates a non-invasive method of isolation of tumor cells using a hyperspectral image. In this paper we used the HSI represented on the website of the Australian National Agency CSIRO—

In Figure 3 the multispectral image of a mouse lung with a tumor, marked with fluorescent protein, obtained in 16 spectral bands is shown. It is assumed that the tumor has uncommon spectrums relating to the attribute space. The initial multispectral image is difficult for visual analysis (it is not easy to notice differences), but on the resulting synthesized images, shown in Figure 4, various regions of the studied object are clearly distinguished. For distinguishing these regions all of the initial spectral band images are involved into processing.

Figure 3.

Multispectral image of a mouse lung obtained in 16 different spectral bands.

Figure 4.

The result of visualization of 16 images for three samples: (a) Sample 1; (b) Sample 2; and (c) Sample 3.

Under each synthesized image in Figure 4, there is the histogram which corresponds to the distribution of distances (d) in the attribute space from the spectrum of the sample to the spectrum of each pixel in the image. The histogram provides information on the number of pixels with a spectrum similar to the spectrum of the sample. Using the histogram, it is possible to set the start threshold value for the image binarization and distinguishing the objects like the sample.

Figure 5 shows the result of selecting objects corresponding to the three samples.

Figure 5.

The result of selecting objects corresponding to the three samples (the images are inverted): (a) Sample 1; (b) Sample 2; and (c) Sample 3.

The thresholds were chosen at the first minimum of the histograms.

By altering the threshold value, it is possible to vary result of the visualization in according to the contextual information and experience of the user.

The method also allows us to distinguish pixels with spectral characteristics which are rare relatively most spectra of this image. For this purpose the Mahalanobis distance for some region E can be used—i.e., the distance from the vector yto the mean vector mXof a set of vectors Xwhich is specified by expression:


where CXis a covariant matrix of set X.

In our case, the set Xis the set of vectors of the attribute space, which correspond to the most representative part of the image in Figure 6a. This area is indicated with the solid line. Figure 6b represents the result of visualization with the Mahalanobis distance over the set Xuse.

Figure 6.

Steps of distinguishing pixels with uncommon spectral characteristics: (1) the spatial region defining the setX; (2) visualization of the initial images using Mahalanobis distance; (3) the result of distinguishing pixels with uncommon spectral characteristics (the image is inverted).

All pixels which are close by their spectral characteristics to mXhave light hue. Pixels, which are appreciably different from mX, have dark hue. Nevertheless, the dark pixels may have different spectral characteristics. To find regions of the image, which are similar by uncommon characteristics, one should choose a dark pixel within the interesting region and use its spectral characteristics as a sample. In Figure 6c. the result of distinguishing one of the clusters of pixels with uncommon spectral characteristics is represented.

4. The target visualization of HSI using contextual information

The use of contextual information when processing hyperspectral images will be shown in the example of the detection of tampering with a financial document. The HSI of the document was presented to us by ZAO “Scientific Devices”.

Figure 7 represents 4 of 125 initial pictures used for processing of the HSI of the financial document, obtained within spectral range 401–998 nm.

Figure 7.

Four of 125 initial pictures used for processing of the HSI, obtained in spectral range 401–998 nm. (a) The picture corresponding to 492,50 nm; (b) 636,69 nm; (c) 780,80 nm; (d) 997,15 nm.

In these pictures, as in the others, not shown in Figure 7, it is difficult to separate the details of the text written with, though similar by spectrum, but still different ink. To detect the falsification the target visualization of the HSI consisting of 125 was used. To detect the falsification the target-visualization of the HSI consisting of 125 pictures was used. The goal of the visualization initially was to distinguish objects that have a spectrum similar to that of the main handwritten text.

The method [2] was used; the letter o(indicated in Figure 8a by an arrow) was chosen as a specimen of the main text. The choice of this sample was based on comprehension of the task (in this part of the text the falsification was senseless). Spectral angle measure d2mnwas chosen as a measure of the similarity. This gave the synthesized image shown in Figure 8b. The brightness of each pixel of the synthesized image is determined by the similarity of the spectrum that corresponds to a specified pixel with the spectrum of the sample. The image shown in Figure 8c was obtained by varying the brightness and contrast.

Figure 8.

Distinguishing the text whose spectrum is similar to the spectrum of inks of the main handwritten text. (a) The image that corresponds to 545,37 nm with an element of the main text indicated by an arrow; (b) the synthesized image for which the main handwritten text was taken as a reference; (c) the synthesized image with correction of the brightness and contrast.

A section of the text was then selected that did not appear on the synthesized image (indicated in Figure 8a by an arrow). Choice of this specimen was based on the fact that the spectrum of this object was different from the main handwritten text and was handwriting, too (another sort of inks might be used). The spectrum of this section, differed from the spectrum of the main text, was taken as a sample of an forgery. Differences between spectrum of ink of the main text and one’s spectrum of the forgery are shown in Figure 9.

Figure 9.

Spectrum of ink of the main text and spectrum of ink of the forgery.

Visualization of the text that corresponds to this spectrum is shown in Figure 10b and after correcting the brightness and contrast—in Figure 10c. The letters “TY” and the numeral “0”belong to the forgery.

Figure 10.

Allocation of the handwritten text of the forgery. (a) The image that corresponds to 545,37 nm with an element of the forgery indicated by an arrow; (b) the synthesized image from the spectrum of the inks of the forgery (the arrow in (a)) and (c) the synthesized image with correction of the brightness and contrast.

Thus, forgery detection was performed with an interactive user participation, which used information of an indirect nature (“the main text” and “handwritten text different from the main one”).

Detection of objects of interest can be performed with a greater degree of automation by combining automatic segmentation and target visualization. At the first stage, automatic segmentation of the spectra of the hyperspectral image is performed. As a result of automatic segmentation, the main spectra are determined. After such preliminary segmentation, an interactive correction can be made using the target visualization of the measure of similarity with the samples-representatives of the corrected areas.

As an example, we performed HSI processing with the joint use of automatic segmentation and the target visualization of the main spectra [6, 7, 8]. The main spectra are determined by automatic segmentation. The visualization of the similarity of the spectra of current pixels to the main spectra is shown by the synthesized images in Figure 11a. Interactive correction of these synthesized images, performed with a change in the brightness range, is shown in Figure 11b.

Figure 11.

Results of the combined use of automatic segmentation and target visualization of similarity to the main spectra. (a) Visualization of similarity to the spectra obtained by automatic segmentation; (b) the images edited by selecting the brightness range.

5. Automatic high-accurate coordinate superposition of images obtained in different conditions

Efficient interpretation of images of objects and scenes may be often achieved only with combined processing of video data obtained at different time, by different surveying devices, within different spectral ranges. For combined processing of such images automatic high-accurate coordinate superposition of them is required. Such images, even being obtained with the same aspects and at the same scale, considerably differs one from other. Thus usual correlation methods of image superposition may be inadequate [4]. There are two appreciably different approaches to image coordinate superposition: methods based on areas and methods based on image details. Each of these approaches has various advantages and disadvantages. These two approaches may be combined by means of the method of image processing by similarity to a sample [8].

To carry out the correlation coordinate superposition of these images, each of them is suggested to be preliminary transformed by the method of similarity to a sample involving, as an attribute space, textural, gradient features and features of adjacency.

The method does not use reference points of a scene directly. Transforming each of the superposed images by the method of similarity to a sample increase reliability of the superposition methods based on areas. Indeed, this transforming allows us to increase similarity of the images when true superposing of them and to increase their differences when relative shifting. Such transformations can be performed quite a lot, but as much as different samples exist in the fixed image.

For each sample, the correlation method determines the coordinates of the shift. The samples are chosen automatically (without the assistance of user). All of the available samples may be used. But if the images have a lot of samples, they can be selected randomly. For the selected samples a distribution is plotted.

Example of defining a coordinate shift the image obtained in the visible range with the image obtained in the infrared range, is presented in Figure 12. Presented in these shots images of the scene in the visible and IR ranges (Figure 12a and b), have parallel shift. The proposed method determined the shift; the displacement was estimated in fractions of a pixel. Figure 12c represents distribution of shifts obtained for various samples. Quality of the superposing may be estimated by statistical characteristics. For example, for this distribution of shifts the following characteristics were calculated: mode of the distribution corresponds to shifts: −0.25 pixels along OX axis, −0.5 pixels along OY axis; the mean shift along OX axis is equal to −0.2 pixels and the mean shift along OY axis is equal to −0.6 pixels; the standard deviation along OX axis is equal to 0.52 pixels and the standard deviation along OY axis is equal to 0.55 pixels.

Figure 12.

Determining shift of the images by coordinates. (a) and (b) the initial images; (c) histogram of the shift estimations.


6. The target visualization of hyperspectral images in the sphere of environmental remote sensing

Up-to-date equipment allows you to collect and analyze information in very narrow spectral bands and is used in various applications. In particular, for water monitoring, hyperspectral technology makes it possible to identify the distribution of algae by the concentrations of chlorophyll, and also to detect impurities of mineral substances in water and to determine the coefficients of cloudiness. Hyperspectral data can also be used to identify threatened vegetation types, some chemical toxins, changes in the chemical composition of soils, etc.

Processing hyperspectral images in remote sensing is related with the difficulties arising from the need to take into account the various distortions that appear in the process of formation of the HSI.

In known methods of processing remote sensing data before using hyperspectral information, the data pre-processing is performed. The main stages, of the pre-processing are:

  • radiometric correction (correcting the distortion due to the uneven sensitivity of the elements of the detectors, accounting for the effects of the atmosphere),

  • geometric correction (georeferencing);

  • combining images obtained in different spectral bands,

  • recalculation of data of distant shooting in values of coefficients of spectral brightness [10].

Such pretreatment is complex and requires additional information, time and computational resources.

Using the target visualization allows us to facilitate the processing of remote sensing data. Really, the target visualization allows us to significantly reduce influence on results of decryption of conditions of shooting (a condition of the atmosphere, exposition parameters), as a sample can be chosen on the initial images. In this case, the values of attributes of a the sample are obtained under the same conditions of shooting, as the values of attributes of the visualized scene.

Using the developed method of the target visualization the work on creation of the information layer “Swamp” on the territory of St.-Petersburg has been done [9]. Remote sensing data, 435 micro landscapes of 11 types on total area of about 40 sq. km were mapped.

Majority of the swamps in the city is under strong anthropogenic influence due to which the images of the wetlands on the territory of St.-Petersburg are very diverse (by type) and variegated (by the spectral and spatial characteristics) structure, which creates a big problem in their interpretation by space images. As input data, the following materials were used:

  • the multispectral images of the territory of St. Petersburg obtained by the Quickbird satellite equipment with the resolution 2.4 m on per pixel;

  • the materials of field researches;

  • the available landscape and thematic maps.

Here, the images of the territory of town Lomonosov (near by the seaport) in four spectral bands, obtained in August by means of the Quickbird satellite equipment, are presented (Figure 13).

Figure 13.

Images of the territory of town Lomonosov (near by the seaport) in four spectral bands obtained in August by means of the Quickbird satellite equipment.

Using the linked archival map and the results of field researches, the necessary samples area on the image was allocated. As the sample area in this case, understand the territory which characteristics precisely match the description of this type of a micro landscape in the accepted scheme of classification.

For an example the polygon corresponding to the coastal open swamp was chosen. Due to the complexity of the research object, additional information was used in the form of additional images (Figure 14):

  • images derived on the base of spatial-spectral, textural, gradient and morphological characteristics of the original images;

  • images obtained at other season.

Figure 14.

The additional images derived from the original images by using different filters: (a) high pass filter; (b) Laplas filter; (c) local sigma filter; (d) visualization of the texture of one of the original images.

The result of the target visualization the coastal open swamps is presented in Figure 15a. The result of the interactive correction of the brightness and contrast are presented in Figure 15b.

Figure 15.

The result of the target visualization of the coastal open swamps: (a) the result of the target visualization; (b) the result of the interactive correction.

7. Search for the boundaries of homogeneous regions on hyperspectral image

The target visualization method is also applicable to the problem of finding out the boundaries of homogeneous regions on hyperspectral image.

Methods of search the boundaries are well developed for grayscale images [3, 10]. Grayscale image is considered as a function of two variables (x, y) and it is assumed that the boundaries of the regions correspond to maxima of the gradient of this function. The main problem of the search of boundary is instability their results to noise. Due to some redundancy in the joint use of multi-channel data, the selection of boundaries on the hyperspectral image is more stable to noise. The target visualization can be used to find out the boundaries of homogeneous regions. For this purpose, the hyperspectral image is transformed in the following way. For each pixel of the hyperspectral image with coordinates (m, n) the maximum spectral angle in a local region of size 3 × 3 pixels with center at (m, n) is calculated. The hyperspectral image is converted to a single-band image in accordance with the value of the spectral angle ugmn. To the obtained synthesized image in tones of gray that contains information of all channels, the known methods of search for the boundaries on halftone images can be applied. In addition, visualization of the gradient makes it possible to interactively edit the result of the boundary outlining.

Figure 16 demonstrates this method of selection of boundaries of homogeneous regions on the hyperspectral image of an urban area.

Figure 16.

Detection of boundaries of homogenous regions for hyperspectral image. (a) Some selection of pictures from the hyperspectral cube; (b) the synthesized image which visualizes the maximum value of spectral angles within local regions of 3 × 3 pixels; (c) the result of allocation the boundaries.

The hyperspectral image was provided by the Norwegian company Norsk Elektro Opitkk (330 channels). Figure 16a shows some shots from this hyperspectral cube. Note that the images of the individual channels are fuzzy, and some channels are highly noisy. In Figure 16b the synthesized image, visualizing ugmnthe maximal spectral angles within local regions of 3 × 3, is presented. The result of the interactive selection of the boundaries on the basis of this synthesized image is shown in Figure 16c.

8. Conclusion

Use of the target visualization of hyperspectral images has a number of useful properties. Image processing by using this method is easy and quite intelligible to applied specialists. Visual data representation makes it easy for user to take a decision, allowing him to use unformalized signs according to his experience and to interactively control process of recognition of objects of interest. The transform performs rapid and compact representation of data. Indeed, measure of similarity is computed quickly and is a scalar value, that allows representing the synthesized image in one channel, and allows us to transmit it over one communication channel. It is easy enough to implement both interactive and automatic selection of objects of interest by choosing a threshold for brightness on a synthesized image. The method allows us to considerably diminish the influence of survey conditions (state of atmosphere, exposure parameters) on results of visual interpretation, because a sample can be chosen from the initial images. In this case the spectral attribute values are obtained under the same survey conditions as the feature values of the visualized scene.

The method is implemented in the basic software [10], which allows the target-visualization of hyperspectral images both automatically and with interactive user participation.

The program performs the following operations.

  • Shows the source images in each channel.

  • Implements a method for visualizing hyperspectral image using the method of similarity to the reference spectrum.

  • Changes the brightness and contrast of the visualization result.

  • Synthesizes a color image in a pseudocolor using different reference spectra and different similarity measures.

  • The program includes tools that allow you to:

  • Zoom the image. To do making a selection of region of an arbitrary shape on the image

  • Cut an arbitrary fragment of a hyperspectral image and perform the same actions with it as with the whole image.

  • Write the results of the processing to the file.

  • View the spectral curves in different, user-selected, spatial points of the image.

  • To store the spectra measured in the process of operation in the spectral library and use them later.

© 2018 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution 3.0 License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

How to cite and reference

Link to this chapter Copy to clipboard

Cite this chapter Copy to clipboard

Tatiana A. Sheremeteva, Gennadiy N. Filippov and Andrey M. Malov (August 1st 2018). Using the Target-Visualization Method to Process Hyperspectral Images, Hyperspectral Imaging in Agriculture, Food and Environment, Alejandro Isabel Luna Maldonado, Humberto Rodríguez Fuentes and Juan Antonio Vidales Contreras, IntechOpen, DOI: 10.5772/intechopen.72249. Available from:

chapter statistics

517total chapter downloads

More statistics for editors and authors

Login to your personal dashboard for more detailed statistics on your publications.

Access personal reporting

Related Content

This Book

Next chapter

Graph Construction for Hyperspectral Data Unmixing

By Zeng Li, Jie Chen and Susanto Rahardja

Related Book

First chapter

Effect of the Climate and Soil Characteristics on the Nitrogen Balance in the North of Algeria

By N. Bettahar

We are IntechOpen, the world's leading publisher of Open Access books. Built by scientists, for scientists. Our readership spans scientists, professors, researchers, librarians, and students, as well as business professionals. We share our knowledge and peer-reveiwed research papers with libraries, scientific and engineering societies, and also work with corporate R&D departments and government entities.

More About Us