Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Single-border particle rejection in IMAQ?

Solved!
Go to solution

I am familiar with the IMAQ RejectBorder VI.

 

For my particular application, I need to explicitly exlude particles (blobs) that intersect one border of the image, while keeping particles that intersect the other three borders. As far as I know, IMAQ RejectBorder always considers all four image borders together.

 

It's not too hard to think of possible workarounds, but I was wondering if a VI exists that can do this already?

0 Kudos
Message 1 of 5
(3,553 Views)

Reject border does what you mentioned. Can you post a image?

0 Kudos
Message 2 of 5
(3,542 Views)

I don't have an image to hand right now, but to be clear, I don't think RejectBorder can do what I ask. I only want to discriminate particles along one of the four image borders.

 

RejectBorder, as far as I can see, always discriminates particles along all four borders.

 

It can't be set to do just one edge of the image.

 

 

 

 

0 Kudos
Message 3 of 5
(3,540 Views)

 


@Caleyjag wrote:

I don't have an image to hand right now, but to be clear, I don't think RejectBorder can do what I ask. I only want to discriminate particles along one of the four image borders.

 

RejectBorder, as far as I can see, always discriminates particles along all four borders.

 

It can't be set to do just one edge of the image.

 

 

 

 


Yes I meant you are right in saying reject border removes particles from all the four borders. Will a combination of erosion and reject border be any different?

 

0 Kudos
Message 4 of 5
(3,537 Views)
Solution
Accepted by topic author caleyjag

 


@Caleyjag wrote:

I am familiar with the IMAQ RejectBorder VI.

 

For my particular application, I need to explicitly exlude particles (blobs) that intersect one border of the image, while keeping particles that intersect the other three borders. As far as I know, IMAQ RejectBorder always considers all four image borders together.

 

It's not too hard to think of possible workarounds, but I was wondering if a VI exists that can do this already?


 

Unfortunately the "Ready for Use" VI not exist for every possible particular situation. Therefore we are software engineers and should do some parts of tasks with own hands.

 

In your case I would like to suggest following easiest way:

Lets say you have image 100x100 pixels and need to reject left border only.

- Create empty black image 101x102 pixels

- Use IMAQ Image to Image and insert your original image into bigger one with offset X=0, Y=1. You will get black surround at the top, right and bottom.

- Use IMAQ Reject Border as usual

 

That's all

 

Andrey.

 

Message 5 of 5
(3,532 Views)