How to filter out objects that do NOT touch the boundary?
I know I can filter out the objects that touch the boundary in Measurements Options by selecting the clean borders. However, for my application, I am interested in the objects that do touch the boundary of the image. Would this be possible in Image-Pro?
Tagged:
0
Best Answers
-
2022-02-22-150317Amirafshar --I do not believe that there is an OPTION to achieve your goal but you can achieve your goal in a couple of steps.Please see the image below where:AA = ORIGINAL IMAGEBB = ORIGINAL IMAGE WITH DARK OBJECTS COUNTED AND NO BORDERS CLEANEDCC = ORIGINAL IMAGE WITH DARK OBJECTS COUNTED AND ALL BORDERS CLEANEDDD = MASK OF BBEE = MASK OF CCFF = DD XOR WITH EE WITH BRIGHT OBJECTS COUNTED AND NO BORDERS CLEANEDGG = ORIGINAL IMAGE + OBJECTS FROM FF (TRANSFERRED USING DATA TABLE IQM FILE)I have attached AA.TIF and GG.TIF for you to use to follow this example.I hope this information is helpful.-- Matt
0 -
2022-02-22-173421Amir --After you COUNT in FF, the MEASUREMENTS for the OBJECTS can be seen in the DATA TABLE.In the DATA TABLE, you have the SAVE MEASUREMENTS TO FILE as shown hereNow if you activate your ORIGINAL IMAGE (AA), you can use the LOAD MEASUREMENTS FROM FILE as shown here.The result will be that the OBJECTS found in FF will be displayed in AA that I designated GG.You can also transfer objects from one image to another using the FEATURES MANAGER. The FEATURES MANAGER is very powerful and very flexible but there are more CLICKS to get from START to FINISH for the task that you are attempting.I hope this information is helpful.-- Matt
0
Answers