Click here to Skip to main content
14,449,077 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want the following functionality in windows c# or vb.net. 
 
I want to highlight particular injured part of human body image after click on it. I also want to save highlighted part id in database. After reopening same image, it will show same previously highlighted area again.
 
Can you provide the sample code or any trick?  Thanks in advance.

I have taken one Image Map control on the form. If I clicked on this particular region, then it is showing popup message. But I want to color this region.


private void Form5_Load(object sender, EventArgs e)
        {
            this.imageMap1.AddPolygon("Polygon", new Point[] { new Point(100, 100), new Point(180, 80), new Point(200, 140), new Point(220, 180) });            
        }

        private void imageMap1_RegionClick(int index, string key)
        {
            MessageBox.Show("Region #" + index + ", " + key + ", clicked!", "Region Click");            
        }


What I have tried:

I have searched on internet, but till now, it has not provided answer to my question.
Posted
Updated 3-Oct-19 2:30am
v3
Comments
F-ES Sitecore 1-Oct-19 9:14am
   
You're going to need some kind of AI that can identify body parts from an image which is not trivial in the slightest, it is a hugely complex task. On top of that you need it to identify injured parts which adds to the complexity ten fold. If you don't even know how to get started on this then the task is probably beyond your abilities.
Rate this:
Please Sign up or sign in to vote.

Solution 1

When you "click on it", save the mouse coordinates (in a collection / list), with the image, for storing in the data base.

When you "restore" the image, restore the mouse coordinates and re-apply the "highlights".

If you need to identify "body parts", then have a list the user can select from before highlighting and creating "new" mouse coordinates.

Use XML or delimited strings for recording details.
   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 2

   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100