LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save an image from an ROI and then convert to an array of pixels?

Solved!
Go to solution

I am working with a USB CCD camera and LabView 2012 on a project. Using some drivers that came with the instrument (imaging source USB CCD drivers) I created a program to display a live feed image and then grab an image and select a ROI. I need to convert this ROI to a new image and then save it, but I am having trouble doing so. I also will need to convert the ROI image to an array of pixels, and I don't know how to go about doing that either. Any help is appreciated! I attached my attempt at the program so far.

0 Kudos
Message 1 of 2
(2,400 Views)
Solution
Accepted by topic author kloram333

Hello Kloram, 

 

Here are some examples that I have found from our NI Community pages that perform your desired actions.

 

[1] Create an Image from ROI 

[2] Create New Image from User Selected ROI

 

Then simply use the following functions from the Vision Development Module in conjunction with the previous examples to achieve your application:

 

- IMAQ ColorImageToArray

- IMAQ ImageToArray

 

 

 

Huntington W
National Instruments
Applications Engineer

***Don't forget to give Kudos and Accepted as Solution where it is deserved***
0 Kudos
Message 2 of 2
(2,378 Views)