Comments (2)
I used Mode as CCorr and it worked fine by finding the correct location.
Why is the denominator zero then when I am trying to do normalization?
from opencvsharp.
I checked the formula for CCORR and understood why this problem might be there.
My image is also thresholded and has much larger areas with black values.
Because of this, the denominator for the summation of intensity at given locations in the image with the mask might come out as zero. Though the numerator must also be zero, it somehow gives such cases as infinity.
For this, I went element by element and converted the cases where score is greater than 1 to -1.
After this it is working fine.
Let me know if there is any other short way?
from opencvsharp.
Related Issues (20)
- opencvsharp4.runtime.win is missing NuGet package README file
- opencvsharp4.extensions is missing NuGet package README file
- opencvsharp4.windows is missing NuGet package README file
- opencvsharp4.wpfextensions is missing NuGet package README file
- Setup HOT 1
- how to split r,g,b channel image from Mat data pointer HOT 1
- License boiler plate still not filled in
- Where is Rect.Empty
- opencvshap4 no Extensions
- OpenCVSharp does not seem to work with Raspberry PI Camera Module 3
- opencvsharp4.9 + ubuntu 20.04 + NET6.0 + Docker Unable to load shared library 'OpenCvSharpExtern' or one of its dependencies HOT 1
- Convert Python code to C#
- Please add cv::dnn::imagesFromBlob() function
- How to build OpencvSharp for Windows with Gstreamer
- Different open cameras depending on the videoCaptureApi used
- Unable to load DLL 'OpenCvSharpExtern' or one of its dependencies HOT 1
- Compatibility of ver 4.9 with .Net 7.0
- Unable to detect if a image is blurred in few cases
- Errors while building OpenCVSharp from source HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencvsharp.