@@ -9,7 +9,9 @@ Use Case: Stencil computation applied to remote sensing hyperspectral preprocess
In parallel programming we frequently find computing patterns that are common in parallel algorithms. An example is the stencil computation where each output element is computed with data from its neighborhood defined by a mask. For this computation the number of operations per pixel is very large. We will see in this use case how to speed up two common pre-processing steps in hyperspectral analysis using OpenMP, from spectral feature reduction using wavelets to morphological profiles by means of the same parallel pattern.”
## Getting started
A good point to start is the youtube recorded session available online at []. The bibliography has some papers related directly to the use case. It is a good reading to enjoy an evening taking a coffee.
A good point to start the HDCRS Summer School - Day 2 - May 31, 2022 recorded session available online at https://www.youtube.com/watch?v=55E9DyoMs1k. Move forward until time 1:01:23.
The bibliography has some papers related directly to the use case. It is a good reading to enjoy an evening taking a coffee.
You need a hyperspectral image in raw format and stored as pixel vectors. You can find the well-know image of Pavia University in that format in the folder named 'data'.
You need a hyperspectral image in raw format and stored as pixel vectors. You can find the well-know image of Pavia University in that format in the `data/` folder.
You must specify the number of times you want to reduce the spectral dimensionality to a half.
You must specify the number of times you want to reduce the spectral dimensionality to a half as the second parameter.
This version create a fixed Morphological Profile with 8 opening and 8 closing for each band.
This version create a fixed Morphological Profile with 8 opening and 8 closing for each spectral band.
## Output
...
...
@@ -54,4 +56,24 @@ The following is just an example:
(TIME) NORMALIZE EMP 0.095508 sg
[info] Saved 'h_emp_opening_u8.pgm', 340 x 610 (207400 pixels) (202 Kb)
[info] Saved 'h_emp_closing_u8.pgm', 340 x 610 (207400 pixels) (202 Kb)
```
\ No newline at end of file
```
## Bibliography
[1] Quesada-Barriuso, P. Argüello, F., Heras D. B., Benediktsson, J. A., "Wavelet-Based Classification of Hyperspectral Images Using Extended Morphological Profiles on Graphics Processing Units," in IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, vol. 8, no. 6, pp. 2962-2970, June 2015, doi: 10.1109/JSTARS.2015.2394778.
[2] T.G. Mattson, B.A. Sanders and B.L. Massingill, Patterns for Parallel Programming, Addison-Wesley, 2005.
[3] Kirk, D. B., & Wen-mei, W. H. (2013). Programming massively parallel processors: a hands-on approach. Morgan Kaufmann Publishers.
[4] Benediktsson, J. A., Palmason, J. A., & Sveinsson, J. R. (2005). Classification of hyperspectral data from urban areas based on extended morphological profiles. IEEE
Transactions on Geoscience and Remote Sensing, 43(3), 480-491.
[5] Vincent, Luc., "Morphological grayscale reconstruction in image analysis: Applications and efficient algorithms." Image Processing, IEEE Transactions on 2.2 (1993): 176-201.
## Pavia University Hyperspectral Image
The Pavia University hyperspectral image was provided by Prof. Paolo Gamba from the Telecommunications and Remote Sensing Laboratory, Pavia university (Italy).
This is image is hosted in the Hyperspectral Remote Sensing Scenes collected by: M Graña, MA Veganzons, B Ayerdi.
The version included in this repository is in stored as pixel vector using 4 bytes per value in a raw format.