|
-
Dec 5th, 2021, 11:55 PM
#20
Fanatic Member
Re: How Recognize geometric shapes
 Originally Posted by Schmidt
Not sure, what you mean... (can only guess, that you mean a certain Color-Tolerance)?
As it currrently is, he FloodFill-based algo has a single If condition (related to the Color-Matching):
If Pxl(X, Y) = Color ...
which compares the 32Bit Long-Value (including AlphaChannel-Byte) exactly.
If you want a higher "Color-Range-tolerance" on that comparison,
then replace the expression with a little boolean-returning SubRoutine like:
Function ColorMatchUnsharp(ByVal PxlArrColor&, ByVal CompareColor&, ByVal PercFactor As Double) As Boolean
...wherein you then split both Colors into their BGRA-Components,
comparing each channel separately (using a certain percentage-based interval).
HTH
Olaf
yes.your are right, I found that a lot of image processing uses opencv, how does vb6 do it?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|