Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8192809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:15:38+00:00 2026-06-07T04:15:38+00:00

I am developing an application which aids users to paint effectively. I have a

  • 0

I am developing an application which aids users to paint effectively. I have a C# code which runs a matlab script and gets the edge detected black and white image of a reference image. Now, I have developed the code which can allow the user to paint over the image. My task is to guide the user to paint over this image. Essentially, when the user is painting, my task is to see that the painting over the black and white edge detected image does not cross the edges. I should be able to detect that when the paint stroke has crossed over an edge, it should be cut off at that edge.

I wish to find out how to store the edges’ information and check if the user has hit an edge. If someone could provide some guidelines regarding the same, it would be really helpful.

Thanks

EDITED: I have uploaded one reference image and its edge detected image. The painting is done on the edge detected image.

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:15:39+00:00Added an answer on June 7, 2026 at 4:15 am

    Looks like something is wrong with your edge detector because it’s generating a pair of lines for each edge.

    Your goal check if the user has hit an edge implies that you need an absolute decision – EDGE or NO EDGE. But edge detection operators like Sobel give you an “edginess” value for each pixel in the range of [0, 255]. So you need more processing to make this absolute decision.

    Simply thresholding the Sobel output is prone to noise. For example, if there was a small out-of-focus object in front of a sharp edge, it could make the edge very weak at that point.

    Look into the Canny Edge Detector. Its hysteresis step helps connect edges that have weak spots. The output is a binary image – edge or no edge.

    Once you have an edge image, you can flood-fill the background, separating the image into a set of disconnected foreground elements. Then use a Region labeling algorithm to give each foreground element a unique label. When the user begins painting, record which region they are inside, and then restrict painting to that region.

    This process is highly dependent on the quality of the edge detected image. If the Canny detector fails to fully enclose a region with edges, it will fail spectacularly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are developing an application which is read heavy and could possibly have millions
I have been developing Android application which has 3 ListView and one ContextMenu for
I'm developing an application which will have these classes: class Shortcut { public string
When developing an application which consumes an external webservice I have generated the sources
I am developing one application which need the following functionalities I have webserver. I
I am developing an application which users authlogic for authentication. I would like some
I have been developing the application which can manage a device using SMS commands;
I have been developing the application which must catch all input sms. For it
i am developing application which point towards the particular location, i have calculate angle
I'm developing an application which currently have hundreds of objects created. Is it possible

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.