|
@@ -129,7 +129,7 @@ int LFSiftPP::extractFeatures ( const NICE::Image & img, VVector & features,
|
|
sift.computeKeypointDescriptor ( descr_pt, *iter, angles[i] );
|
|
sift.computeKeypointDescriptor ( descr_pt, *iter, angles[i] );
|
|
for ( int j = 0 ; j < descr_size ; j++ )
|
|
for ( int j = 0 ; j < descr_size ; j++ )
|
|
{
|
|
{
|
|
- if ( isnan(descr_pt[j]) ) {
|
|
|
|
|
|
+ if ( NICE::isNaN(descr_pt[j]) ) {
|
|
fprintf (stderr, "Descriptor with NAN values !!\n");
|
|
fprintf (stderr, "Descriptor with NAN values !!\n");
|
|
exit(-1);
|
|
exit(-1);
|
|
} else {
|
|
} else {
|
|
@@ -160,7 +160,7 @@ int LFSiftPP::extractFeatures ( const NICE::Image & img, VVector & features,
|
|
sift.computeKeypointDescriptor ( descr_pt, *iter, angle );
|
|
sift.computeKeypointDescriptor ( descr_pt, *iter, angle );
|
|
for ( int j = 0 ; j < descr_size ; j++ )
|
|
for ( int j = 0 ; j < descr_size ; j++ )
|
|
{
|
|
{
|
|
- if ( isnan(descr_pt[j]) ) {
|
|
|
|
|
|
+ if ( NICE::isNaN(descr_pt[j]) ) {
|
|
fprintf (stderr, "Descriptor with NAN values !!\n");
|
|
fprintf (stderr, "Descriptor with NAN values !!\n");
|
|
exit(-1);
|
|
exit(-1);
|
|
} else {
|
|
} else {
|