td_pca.pl (4.55 kB)
Download file

td_pca: code for calculating principal components of a multispectral image

Download (4.55 kB)
software
posted on 03.02.2017, 11:46 by Hernán De AngelisHernán De Angelis
This code takes N GeoTIFF images and calculates the N principal components. It also produces a simple PNG file of principal components 1, 2 and 3 in RGB space.

The code is based on Perl and Perl Data Language (PDL), and relies on a series of modules described in the code. It also requires Generic Mapping Tools for computing the PC images using the program "grdmath", and ImageMagick for producing a PNG output.

usage:
td_pca.pl image1.tif image2.tif ...

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

History

Usage metrics

Licence

Exports