LEADTOOLS Support
General
General Questions
Is it (going to be possible) to create 4 point angle measurement (as shown in attachment) to the vie
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, August 5, 2009 5:13:28 AM(UTC)
Groups: Registered
Posts: 22
Currently the viewer of v15 and v16 can only create a angle based on 3 points. Specifically for medical images, sometimes the angle between two bones (not connected to eachother) are measured.
To do so, 4 points need to be set. The two first to draw a line trough the first part, and the next two through the next part. The angle difference between the two lines descibes the measurement.
The attached image is just an example.
dkrijnen attached the following image(s):
#2
Posted
:
Thursday, August 6, 2009 5:03:16 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
This can be done but not directly. You can draw 2 annotation line objects then calculate the slope difference between them. Here are the steps to do that:
1. Obtain the end points of each line and calculate the slope. To do that, use this formula:
slope = (y2 - y1) / (x2 - x1)
Of course you should consider the special case of a vertical line where x1 = x2 and use a modified approach.
2. Calculate the inclination angle for each line, which is the arctangent of the slope.
3. Subtract the inclination angle of one line from the other and you will get the angle between them.
If you want, you can do these calculations in a custom annotation object that has 4 points.
If you want to request a feature for this, please send a ticket to
support@leadtools.com and describe what you need exactly. If you do that, please mention this forum post.
LEADTOOLS Support
General
General Questions
Is it (going to be possible) to create 4 point angle measurement (as shown in attachment) to the vie
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.