NAME
set_signature_features - Sets the feature vector of the target signature.
SYNOPSIS
#include "lsm/lsm_emd.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int set_signature_features
(
Signature *target_sig_ptr,
const Matrix *feature_data_mp
);
DESCRIPTION
This routine sets the feature vector of the signature pointed to by
target_sig_ptr to the values contained in the input Matrix feature_data_mp.
Each row in the input Matrix is copied to a KJB Vector and stored as an
element in the signature's feature vector.
RETURNS
Either NO_ERROR, or ERROR, with an appropriate error message being set.
PRECONDITIONS
1) The signature pointed to by target_sig_ptr must already be allocated.
2) The matrix pointed to by feature_data_mp must not be NULL.
3) The number of features in the target signature must be equal to the
number of rows in the input Matrix.
4) The number of columns in the input Matrix must be >= zero.
RELATED
get_target_signature, free_signature, copy_signature,
set_signature_weights, get_signature_from_RGB, get_clustered_data,
convert_spectrum_to_signature
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Lindsay Martin
DOCUMENTER
Lindsay Martin
SEE ALSO
get_earthmover_distance
,
euclidean_distance
,
get_target_signature
,
free_signature
,
copy_signature
,
set_signature_weights
,
get_target_signature_db