Principal component analysis

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(Using OTB standalone)
(Using OTB standalone)
Line 12: Line 12:
 
* Type into the search box of the Windows taskbar: {{typed|text=mapla.bat}}. Click on mapla.bat to open  Monteverdi Application Launcher.
 
* Type into the search box of the Windows taskbar: {{typed|text=mapla.bat}}. Click on mapla.bat to open  Monteverdi Application Launcher.
 
* In the search engine of the Processing Toolbox, type {{typed|text=Dimension}} and double click '''Dimensionality Reduction'''.
 
* In the search engine of the Processing Toolbox, type {{typed|text=Dimension}} and double click '''Dimensionality Reduction'''.
*  
+
* Specify a multispectral image as Input Image.
 
+
* Specify directory and name for the Output image. Select the output data type {{button|text=uint 8}} from the pull-down list.
 +
* Check the box '''Rescale Output'''.
 +
* Select '''PCA''' from the drop-down list as Algorithm.
 +
* Enter 4 as number of components.
 +
* Check the button '''Normalize''' {{button|text=On}}.
 +
* Click on {{button|text=Execute}}.
  
 
[[File:pca_otb.png|400px]][[File:pca_result.png|400px]]
 
[[File:pca_otb.png|400px]][[File:pca_result.png|400px]]
  
 
[[category:QGIS Tutorial]]
 
[[category:QGIS Tutorial]]

Revision as of 11:28, 19 November 2018

Using QGIS OTB plugin

Does currently not work in OTB plugin for QGIS 3.4.

  • In the search engine of the Processing Toolbox, type PCA and select DimensionalityReduction(pca) under Image Filtering of the Orfeo Toolbox.
  • Under the Parameter tab, select Multispectral band file as the input layer.
  • Select pca under the Algorithm tab.
  • Enter 4 as the number of components.
  • Specify the directory to save the output file.
  • Untick output file after running algorithm (inverse output image) option.
  • Click on Run to execute the algorithm.

Using OTB standalone

  • Type into the search box of the Windows taskbar: mapla.bat. Click on mapla.bat to open Monteverdi Application Launcher.
  • In the search engine of the Processing Toolbox, type Dimension and double click Dimensionality Reduction.
  • Specify a multispectral image as Input Image.
  • Specify directory and name for the Output image. Select the output data type uint 8 from the pull-down list.
  • Check the box Rescale Output.
  • Select PCA from the drop-down list as Algorithm.
  • Enter 4 as number of components.
  • Check the button Normalize On.
  • Click on Execute.

Pca otb.pngPca result.png

Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export