DETECTING A USER GENERATED LINE PROFILE IN AN IMAGE . . .
All --
I have a customer that has a large set of images. Some of the images (illustrated by AAA.TIF below) have ANNOTATION TEXT BOX, MEASUREMENT LINE OBJECTS, and SCALE BAR. Some of the images (illustrated by BBB.TIF below) have ANNOTATION TEXT BOX, USER GENERATED LINE PROFILE LINE, and SCALE BAR.
I am writing an APP to do some work on these images.
Can you provide guidance on what CODE can determine / indicate whether an image is TYPE AAA (No USER LINE PROFILE LINE) or TYPE BBB (Yes USER LINE PROFILE LINE).
I think this may be possible indirectly in this case by determining the number of MEASUREMENT LINE OBJECTS are in the IMAGE (>0 = TYPE AAA, 0 = TYPE BBB) but I would rather do it directly in case there is a unique image that has both.
If I activate the LINE PROFILE TOOL and a TYPE AAA IMAGE is being processed, IMAGE-PRO automatically places a LINE PROFILE LINE in the image and this causes issues.
Thank you in advance.
-- Matt
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
AAA.TIF and BBB.TIF with LINE PROFILE TOOL DEACTIVATED
AAA.TIF and BBB.TIF with LINE PROFILE TOOL ACTIVATED
0
Best Answer
-
Matt, you can disable adding default line profile in the options. The check for existing LP feature could be done wo LP panel and active tool:
Dim lpe As MediaCy.Commands.LineProfile.McLineProfileEngine lpe = MediaCy.Commands.LineProfile.AddIn.LineProfileEngine(ThisApplication.ActiveDocument, True) If lpe.LFeatures.Count > 0 Then 'check for any LP feature End If
Nikita.0
Answers
You can check profiles collection of LineProfileEngine (search forum for LineProfileEngine).
Thanks,
Nikita.
C:\Users\Owner\Desktop\AAA.tif
USER LPE NOT FOUND
------------------------
C:\Users\Owner\Desktop\BBB.tif
USER LPE FOUND