Solved

How to measure sizes and angles in scanned images ?

Posted on 2016-11-22
3
25 Views
Last Modified: 2016-11-25
Hello Experts,
This time our goal is to be able to measure sizes in dental/orthdontic radiographies.
Our app gets the radiography directly from any kind of xray machine,

Now how do you do to measure distances in an image....fox example from this dot to this dot?
we work with visual basic and visual c#

All ideas to measure distances or angles in images are very welcome.
if there is source example also great.

Regards,
0
Comment
Question by:rguillermo
3 Comments
 
LVL 12

Accepted Solution

by:
Dustin Saunders earned 250 total points
Comment Utility
You can get the distance between two points with something like this:
Point start = new Point(0, 0);
            Point end = new Point(4, 2);
            double a = end.X - start.X;
            double b = end.Y - start.Y;
            double c = Math.Sqrt((a * a) + (b * b));
            Console.WriteLine("Distance is " + c.ToString());

Open in new window


I'm not sure how you are determining the starting point, but maybe have an button that allows the user to create a new point and they can drop a 'pin' from there.

Since you now effectively have a triangle, you can use sin, cos, or tan to determine the angles involved.
https://www.dotnetperls.com/cos-sin-tan
https://www.mathsisfun.com/sine-cosine-tangent.html
0
 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 250 total points
Comment Utility
the distance will be in pixels you will need some type of conversion table to get the distance measurement you want. so you need a reference measurement on the actual picture itself. Without this reference the measurement numbers are irrelevant.  i.e. when I take a picture of something I will include a tape measure to show the distance. The X-Ray Tech should have a device of some sort to include in the picture available or it will be available from your medical supply office.
0
 

Author Closing Comment

by:rguillermo
Comment Utility
Excellent !
Thank you Experts !!!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now