[GRASS-SVN] r66442 - grass-addons/grass7/imagery/i.spec.sam
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Oct 9 02:35:03 PDT 2015
Author: ychemin
Date: 2015-10-09 02:35:03 -0700 (Fri, 09 Oct 2015)
New Revision: 66442
Modified:
grass-addons/grass7/imagery/i.spec.sam/main.c
Log:
get_row(,,) to G_matvect_get_row(,)
Modified: grass-addons/grass7/imagery/i.spec.sam/main.c
===================================================================
--- grass-addons/grass7/imagery/i.spec.sam/main.c 2015-10-09 09:28:16 UTC (rev 66441)
+++ grass-addons/grass7/imagery/i.spec.sam/main.c 2015-10-09 09:35:03 UTC (rev 66442)
@@ -57,7 +57,8 @@
int row, col;
int band;
int i, j, error=0;
- VEC *svd_values;
+ vec_struct *svd_values;
+ /*VEC *svd_values;*/
/*char command[80]; rm by Yann temporarily see grayscale palette*/
float anglefield[255][255];
struct
@@ -106,12 +107,12 @@
for (i = 0; i < Ref.nfiles; i++) /* Ref.nfiles = matrixsize*/
{
- Avector = get_row(A, i, VNULL); /* go columnwise through matrix*/
+ Avector = G_matvect_get_row(A, i); /* go columnwise through matrix*/
for (j = 0; j < Ref.nfiles ; j++)
{
if (j !=i)
{
- b = get_row(A, j, VNULL); /* compare with next col in A */
+ b = G_matvect_get_row(A, j); /* compare with next col in A */
spectral_angle();
anglefield[i][j]= curr_angle;
G_vector_free(b);
@@ -182,7 +183,7 @@
for (i = 0; i < Ref.nfiles; i++) /* Ref.nfiles = matrixsize*/
{
- Avector = get_row(A, i, VNULL); /* go row-wise through matrix*/
+ Avector = G_matvect_get_row(A, i); /* go row-wise through matrix*/
spectral_angle();
result_cell[i][col] = myround (curr_angle);
G_vector_free(Avector);
More information about the grass-commit
mailing list