-1.#IND is generated when sqrt(-1),
IND is abstract of "indeterminate"
To check this value, we can use cvIsNaN function
The function check the input value is indeterminate value or not.
If value is indeterminate value, the function return 1
show the example code
printf ("cvIsNaN (0.0) : %d\n",cvIsNaN (0.0));
printf ("cvIsNaN (1.0/0.0) : %d\n",cvIsNaN (1.0/0.0));
printf ("cvIsNaN (-1.0/0.0) : %d\n",cvIsNaN (-1.0/0.0));
printf ("cvIsNaN (sqrt(-1.0)): %d\n",cvIsNaN (sqrt(-1.0)));
output is
cvIsNaN (0.0) : 0
cvIsNaN (1.0/0.0) : 0
cvIsNaN (-1.0/0.0) : 0
cvIsNaN (sqrt(-1.0): 1
1/28/2014
Subscribe to:
Post Comments (Atom)
-
Open Source License Commercial Use Guide Understanding Commercial Rights in Open Source Licenses ð Legend ✅ Free : Comm...
-
refer to code: . import ezdxf import random import matplotlib . pyplot as plt # Random DXF file generator def random_point (): r...
-
ð FREE License Plate Recognition API - No Credit Card Required! Want to try ANPR (Automatic Number Plate Recognition) / ALPR (Automatic L...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
The MNIST dataset is a dataset of handwritten digits, comprising 60 000 training examples and 10 000 test examples. The dataset can be downl...
-
This example source code is to extract HOG feature from images. And save descriptors to XML file. The source code explain how to use HOGD...
-
Background subtractor example souce code. OpenCV support about 3 types subtraction algorithm. Those are MOG, MOG2, GMG algorithms. Det...
-
ONNX Runtime with ROCm (AMD GPU) Setup Guide Installation Prerequisites ROCm installed (6.0+ recommended) Python 3.8-3.10 Install ONNX Runti...
-
I use MOG2 algorithm to background subtraction. The process is resize to small for more fast processing to blur for avoid noise affectio...
No comments:
Post a Comment