From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

contour plot of intensity in an image

Dear all,

               I would like to plot contour lines around bright regions in the images attached. I have thresholded original (unprocessed) images and obtained the attached binary images. 

 

I also want to superimpose the attached images on each other so that all the bright regions with different contour lines will be visible in a single image. Could any body throw some ideas?

 

Thanks.

 

 

Download All
0 Kudos
Message 1 of 2
(2,896 Views)

Hi,

 

There are a couple ways you can do this, they normally require some code writing from you:

 

  1. Magic wand can help you draw a contour however your area of contouring needs to be clearly defined. You can find an example for this in the NI Example Finder >> Toolkits & Modules>> Vision>> Functions>> Magic Wand Example.vi
  2. You can write some code that performs a similar type of action, please see the attached. You can combine functions such as edge detection with filtering...

I also found this example; I thought you might find it interesting: http://zone.ni.com/devzone/cda/tut/p/id/3169

Again for superimposing the two images there is no VI that is specifically designed to do this for you however you can make an algorithm that does this. For instance you can convert the images to arrays and multiply them together to identify the intensity of the pixel.

 

Hope this helps.

 

Regards,

 

Mahdieh G
Applications Engineer
National Instruments UK&Ireland
0 Kudos
Message 2 of 2
(2,881 Views)