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
-
Thank you very much Matt for the prompt response. I will try this approach and let you know how it goes.
0 -
2022-02-22-153948amirafshar --You are welcome.Good luck.-- Matt
0 -
Matt,I have manged to reach step FF and count only the objects that are touching the boundary. I was wondering if you could elaborate on the last step, how to get GG image? I don't know where I can find the DATA TABLE IQM FILE and how to use it to transfer the objects from FF image to the original image. Thank you.-Amir
0 -
Matt,Thank you for the detailed work flow. This is super helpful.Amir0
-
2022-02-22-180821Amir --You are very welcome.This forum has been very helpful to me and I am glad to help others.Have a great day.-- Matt
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions