Contour points

Contour points

Postby Natter » Mon May 27, 2024 6:34 pm

Hi,

There is a one-color arbitrary contour. I need to get the screen coordinates of the points that make up this contour. How can I do this ?
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: Contour points

Postby Antonio Linares » Mon May 27, 2024 8:00 pm

If the image is not very large you could use GetPixel( hDC, x, y ) --> nColor
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Contour points

Postby Natter » Tue May 28, 2024 8:52 am

Thanks !
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: Contour points

Postby Natter » Thu Jun 13, 2024 12:28 pm

The screen shows a contour of the same color. I need to get the screen coordinates of the points of this contour via GetPixel (in 5 pixel increments).
Does anyone have an algorithm for such a bypass (so as not to reinvent the wheel :D ) ?
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: Contour points

Postby Jimmy » Thu Jun 13, 2024 2:34 pm

hi,
Natter wrote:There is a one-color arbitrary contour. I need to get the screen coordinates of the points that make up this contour. How can I do this ?

i have a App called "Skincode" which can generate a Array from contour of a Bitmap.
write me a private Email and i can send it to you.
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Contour points

Postby Natter » Thu Jun 13, 2024 5:22 pm

Hi, Jimmy ! Thanks for the offer, but I do not know your email. :(
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: Contour points

Postby Jimmy » Fri Jun 14, 2024 8:33 am

hi Natter,

write me a Email to : Auge_Ohr AT web.de
and i will send you "skincode" app to generate Array for aRegion of Bitmap
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Contour points

Postby Natter » Fri Jun 14, 2024 10:33 am

Jimmy, I sent a letter
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Natter and 62 guests