|
|
Your Order 4 shape reminds me of some results I was getting on an SVG generating control I was working on a few years ago. I didn't have a great algorithm for tracing. And then I set it aside when I couldn't figure out a way to determine inside or outside of complex shapes.
<sig notetoself="think of a better signature">
<first>Jim</first> <last>Meadors</last>
</sig>
|
|
|
|
|
It is not easy!
But I am getting so close!
You might be happy with the winding number though?
Winding number - Wikipedia
But I am trying to find the outline.. winding number leaves hole inside the shape!
|
|
|
|
|
Thanks for the suggestion on Winding Number. I've never heard of it and it looks promising if I follow down some of the links and get the Maths that go along with them. I'll skip the part about string theory though.
I made a fairly successful tracer that first found a pixel that was "black" or "not white" and then by braille, followed the edge of the shape until it got back to where it started. Good Luck with yours
<sig notetoself="think of a better signature">
<first>Jim</first> <last>Meadors</last>
</sig>
|
|
|
|
|
Nice work
Following up on a reply I posted a week or so ago to your original post:
Here is a hand-drawn image of rectangles and circles done by my pet arthritic hamster - pet hamster's drawing of circles and rectangles[^] and here is the result of a weekend or so of work done on detecting rectangles and circles - Computer generated guess of rectangles and circles[^]
What I am trying to do is much simpler than your examples - for my blob detection I however don't rely on math(that spelling will annoy a few people ) but, to put it simply, I use a method where I scan the page several times looking for how close edges are to each other in order to distinguish blobs.
For circle detection I draw a box around the blobs and then cut off each of the four corners, of the boxes, with a triangle and the code determines how many pixels are within each triangle - hamster's drawing with detected blobs in rectangles with triagles at edges[^].
Then using a pre-determined sensitivity the code guesses at what is a circle and what is a rectangle.
One recommended way of detecting circles is to measure how close the borders are to the centre of the blob, however I found that with my arthritic hamster's circles being so poor, in some cases circles were being detected as rectangles - my usual go for a walk and think of how to solve the problem led to the triangle solution.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Nice man. I have never done any image recognition, good work!
But yeah my problem is a geometry one... I fixed one bug, I got 50% shape most of the time now...
Tomorrow it should work...
|
|
|
|
|
Geometry and image recognition are very closely related because they both deal with shapes and rules regarding those shapes.
Do you think you might write an article once you are done? I would be interested in seeing and reading it.
(I am thinking of maybe writing something once I have tidied up my work)
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
I might not hurry to publish an article about outline of shape... first publish the app that would use it and wait a while!
Maybe in 12 months time! sorry
Although sometimes I have doubt I can solve it.. still doesn't work with bezier contour.. and I think it's due to intersection point between curves being a numerical approximation ... 13 hours later, still investigating
I do have an article idea, about my serializer though, but still want to solve that maths issue and do some more work on the app that uses it first!
|
|
|
|
|
1. to finally choose some javascript+html+? framework and get to some level of competency with it.
2. when #1 fails to amount to anything but the gnashing-of-teeth-in-outer-darkness (and, it will): to regularly dump my frustrations on the Lounge.
3. the usual stuff: not to look in mirrors; to avoid people who use words like "trigger" unless they are talking about a horse; keep meditating hoping one day I'll amount to nobody; to not have a smart-phone; to never FBook Twit, Line, Insta-, etc.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
640x480
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
I wonder how many young whipper snappers don't even know the relevance of those numbers.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
I asked a friend of mine and he said 'to eat more chocolate'
I reckon that's a win whether you reach your goal or not
|
|
|
|
|
It occured to me that "generally" would be a suitable term to describe the sperms' struggle to be the first one to reach the egg.
|
|
|
|
|
SOMA on GOG.com[^]
I know little about it: an "FPP horror adventure" apparently.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Well, I'm glad it's free, because the "upgrade" of the gog site has annoyed me so much that I'm not giving them any more money until they've fixed it.
The only browser that the site works completely in is chrome, and I'm not going to install that cr@pware every time they want some of my hard-earned money.
Oh, and one of the things that doesn't work in most browsers is the button to claim the free game.
In the end, Opera handled it.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Quote: a given horse is not looked into the mouth
|
|
|
|
|
Maybe, but the horse won't demand that you keep a pile of horsesh1t on your desktop.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Some days ago, you posted humble "lego The lord of the rings".
Now the "Lego, the Hobbit" has been added. Pity is... only 3 hours left
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Added that one on the 13th![^]
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
But... who are you, really?!
|
|
|
|
|
Impostor ! the real Griff is a serious guy and won't have anything to do with gaming
|
|
|
|
|
Exactly!
Must be one of those sentient machines!
|
|
|
|
|
Damn! My secret is out!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
Dat gurl can shore play de fiddle!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|