Closed gnimor closed 5 years ago
I encountered the same issue as you
While I exchange 2 points and the program works with blank Histo result
In the sample, the Rectangle object coordinates or the points are in the wrong order. If you correct them, you will get it working. Just think about how you would draw a vertical bar or rectangle.
Yes, Frank is right, I change The order OF X coordinate and output right histo
Summary of your issue
I am trying to run the histogram sample as shown on the wiki page with the latest OpenCvSharp4 package from NuGet. But I get an ArgumentException during the render operation of the histogram.
During the render part of the histogram I get an Argument exception: Message: bottom > top
Environment
Windows 10
Example code:
Output: