ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image filters inside an ROI

Solved!
Go to solution

Hello,

Does anyone know of a way to apply image filters (edge detection, threshold…) to only the portion of an image inside an ROI?

Thanks for any advice,

Brian

0 Kudos
Message 1 of 6
(3,045 Views)

Is your ROI a rectangle or some arbitrary shape?

 

 

Randall Pursley
0 Kudos
Message 2 of 6
(3,037 Views)

Randall,

 

It's a rectangle.

 

Thanks,

Brian

0 Kudos
Message 3 of 6
(3,028 Views)


Does anyone know of a way to apply image filters (edge detection, threshold…) to only the portion of an image inside an ROI?




Dear brian,

 I dont know its a good idea or not. Why cant you try image mask (Mask From ROI) function. 

---
Silver_Shaper | CLD
0 Kudos
Message 4 of 6
(3,019 Views)
Solution
Accepted by w17

Take a look at the attached.  I think this is what you are looking for.  Make sure you have an ROI defined in the 'Original' image control before running.

 

 

FP.png

Randall Pursley
Message 5 of 6
(3,008 Views)

Randall,

 

This is exactly what I was looking for. I modified your code to use video and it works great!

 

Thank you for your help.

Brian

Message 6 of 6
(3,003 Views)