T O P I C R E V I E W |
AndyColmes |
Posted - Aug 04 2015 : 10:37:42 Hello,
I am trying to implement measurements like the demo measureit to measure distances in mm and cm. I am a bit confused on how to use ImageEnVect1.SetScaleFromSelectionLen which I think is crucial to get the correct measurement. Does this have to do with the image size at all?
Also, I need to be able to make the measurement stick as a line object (with the measurement text value) after releasing the mouse. The demo at the moment clears the measurement once the mouse is released.
Thanks for any help in advance.
Andy
|
3 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Aug 06 2015 : 16:32:25 Hi Andy
All the Scale methods ultimately do the same thing which is to set the valuue for TImageEnVect.ScaleFactor:
http://www.imageen.com/help/TImageEnVect.ScaleFactor.html
If you want a visible line use a ruler object, e.g. change:
ImageEnVect1.MouseInteractVt := [ miDragLen ];
To:
ImageEnVect1.MouseInteractvt := [ miPutRuler ];
Nigel Xequte Software www.xequte.com nigel@xequte.com |
AndyColmes |
Posted - Aug 06 2015 : 07:11:40 Hi Nigel,
Yes, I am using the MeasureIt demo. Do I still have to use SetScaleFromSelection, if I already use SetScaleFactor(10, 1) where I define 10 pixels for each mile (ieuMILES)?
Also, how do make the measurement stick as a line object after releasing the mouse? Is that possible?
Thanks Nigel.
|
xequte |
Posted - Aug 05 2015 : 18:27:15 Hi Andy
Please see the demo:
Demos\ImageAnalysis\MeasureIt\MeasureIt.dpr
Nigel Xequte Software www.xequte.com nigel@xequte.com
|