Merge object,
HI all,
Image Pro had a nice function that allowed to draw an object around a lot of other measured objects (e.g. bias) and then merge the large with the underlying first measured objects. This way cleaning up was very simple by using a size restriction.
I could not find any equivalent in Image Pro Premier. Is there one I overlook or cannot find?
Many thanks
Daniel
Image Pro had a nice function that allowed to draw an object around a lot of other measured objects (e.g. bias) and then merge the large with the underlying first measured objects. This way cleaning up was very simple by using a size restriction.
I could not find any equivalent in Image Pro Premier. Is there one I overlook or cannot find?
Many thanks
Daniel
0
Answers
Please check the Merge button on the Measure tab:
Yuri
Thanks I found that one... but not what I need. Maybe I expressed myself not well.
I do not want to manually select object (I'd grow too old...). I want to draw an object around all those you selected and then merge.
Or is there a way I can easily select subgroups of objects? E.g. within a second ROI I could draw around the bias objects or something like that? It needs to be free polygon.
Best
Dan
Hope this explains it.
Thx
Daniel
If you want to exclude some areas from counting, you can do it by drawing ROIs defining areas you want to count, you can combine multiple ROIs with XOR:
You can also just select objects on the image (using Net selection) and then delete them.
Yuri
What do I miss here?
You should draw ROI first and then execute Count. The objects will be counted only in areas inside the ROI mask (non-green).
Yuri
The simple 'ROI to object' was very useful. So there is no way to freely or anyhow easily select groups of objects that were counted....
Thanks for bothering.,
Daniel
If you want to exclude objects after Count using manually drawn exclusion area, you can draw a new ROI (with XOR option) and execute Count again.
Also, you can just select multiple objects and delete (which was not possible in Image-Pro Plus).
Yuri
Just saw your answer - sorry for not checking it earlier.
Yes basically this is the problem, So I would count and then use an ROI to include objects I dislike (let's say in this case B and C) and then make an object of it that is simply excluded by the current maximal size setting (object area).
But the problem is in truth a bit more complicated.
If I'd use a new XOR Roi, as Yuri suggested, then I would need to remeaure everything to exclude objects, beside that drawing an XOR ROI suiting to a free form ROI that was drawn from a rater before and that I reload from file is not really easy and clean.
For my measurements I often use complex filtering, exclusions etc... and when I have the objects I want to have measured I close modified images and project stored object outlines onto the reloaded original. That's the point where I want to make such exlusions WITHOUT measuring new (otherwise I'd have to draw XOR ROI, store and run the entire process with filtering and pipapo that can take up to 30 minutes for one large image on XOR ROI again). And we are talking about thousands of images and if just 1% of the images would be measured with some bias I can't get rid of, we are talking about weeks of waiting within a year. So that's not really feasible.
Also not working is drawing a second ROI and convert ROI to object, since it will just store another large object and not eliminate the objects measured before below this new ROI (it will just add, since now object in object is supported (parent child). It would work only if drawn before the count and cannot be used after the count. At least as far as I tested it.
In the end I believe this one very simple and useful function is missing, which was drawing an ROI, convert it to an object eliminating all objects within the ROI and then simply exlude by size (would now be Apply ranges, formerly just the 'measure' that was also very useful).
I am thinking of a workaround using the coordinates, thus checking the coordinates of each object and delete it singly if having coordinates with the new drawn ROI. However, that might be time consuming when measuring 100k objects and more. Maybe you could bury out the underlying code for the former function? It was working effectively and fast...
Thanks
Dan
1 minute after posting that I found the solution..... from Yuri's posts.
So it is drawing the ROI (or direclty an object), add to Region Measurements in the Feature Manager.
Then selecting the objects in the Measure Tab pressing Ctr while going around with the mouse cursor. Then apply filters.
However, it is not that clean as the old version, since selecting the multiple objects with the mouse cursor just works as rectangle.... But of course most can be captured and some others can be added singly.
Cheers
Dan