civilcalc Posted February 1, 2012 Share Posted February 1, 2012 I have the following imageand would like to be able to find the extreme corner pixels via some sort of pixel search function.these are the points I am looking for.anyone know how I would go about it? Link to comment Share on other sites More sharing options...
rodent1 Posted May 1, 2012 Share Posted May 1, 2012 I would check the image pixels one horizontal line at a time from left to right, starting with the top line. I would then compare sequential lline records to measure by how many positions the first and last dark pixels vary from line to line. I would then set a triggering variation size to record the points. That should give you the spots you marked. Does that make any sense? Link to comment Share on other sites More sharing options...
Bert Posted May 2, 2012 Share Posted May 2, 2012 nice pic of an handheld emulator. Am I correct? Looks like a blackberry. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
civilcalc Posted May 27, 2012 Author Share Posted May 27, 2012 nice pic of an handheld emulator. Am I correct? Looks like a blackberry.Ah ha! noIts actually a stack of poker chips. I was trying to write an app that would count the chips just from the picture. The idea was to turn the image into a shilloute, by using the background colour with a wide range (to produce the pic you see above).Then use the known geometry of the chips to work out how many are there. Once we have the extreme width in pixels, we cant work out what the depth of a chip is in pixels, working out the peak point (the high point on the image) we can then work out chip angle, and then count the chips.Unfortunately I never got it off the ground, I could never program it to see the corners. :-( Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 28, 2012 Moderators Share Posted May 28, 2012 civilcalc,I do hope these chips were not part of some form of poker game - you have read our Forum Rules I trust? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now