09-24-2013 07:24 PM
hi everyone, i have this little question,.
can I control where i want the objects to be?
ok,. i want to know if is possible to make it....
09-25-2013 12:28 AM
Hello,
I dont't understand your question.
Do you mean if it is possible to only count objects in a specific region on your image?
If this is the case, you can use IMAQ count objects to specify the "search rect" input (you can extract the search rect from the ROI on your image):
Search Rect (entire image) specifies the rectangular region of the image where the objects are located. The default value specifies a search on the entire image.
Best regards,
K
09-25-2013 01:24 AM
09-25-2013 02:23 AM
If you are binary thresholding, you can have only two values (0 and 1). So, after the detection you would like to apply some sort of filter, that supresses some objects and not others? Are you going to do this manually, or will it be based on some sort of criteria?
Have you looked at the IMAQ Particle filter?
If you want to control which detected objects to supress, you need to replace the bounding rectangle of your detected object with an image of equal size with values 0. You can use IMAQ ImageToImage for this.
Best regards,
K
09-25-2013 08:21 AM
09-26-2013 01:24 AM - edited 09-26-2013 01:24 AM
Hello,
with what criteria do you want to use to sort the objects? Based on their area, position, etc...? Or do you just want to sort them manually (although I do not understand why do you want to sort them manually)? If you want to sort them manually, then just index the output arrray of clusters and reorder them. For example:
Best regards,
K
09-26-2013 06:57 AM