Fresnel Posted November 22, 2008 Report Share Posted November 22, 2008 I have an image of a spot on a CCD camera and it is a fairly stable image. I have a lot of background noise around the image I'd like to cut out. I can do this easily using an Intensity graph to work out what pixel values to ignore but I'd also like to only analyse a rectangular segment of my whole image, ie a rectangle around the spot. I have tried using IMAQ select rectangle but it just keeps constantly asking me to select a rectangle even after one is selected. Any ideas? Quote Link to comment
Neville D Posted November 22, 2008 Report Share Posted November 22, 2008 Post your code. N. Quote Link to comment
Minh Pham Posted November 24, 2008 Report Share Posted November 24, 2008 QUOTE (Fresnel @ Nov 22 2008, 01:21 AM) I have an image of a spot on a CCD camera and it is a fairly stable image. I have a lot of background noise around the image I'd liketo cut out. I can do this easily using an Intensity graph to work out what pixel values to ignore but I'd also like to only analyse a rectangular segment of my whole image, ie a rectangle around the spot. I have tried using IMAQ select rectangle but it just keeps constantly asking me to select a rectangle even after one is selected. Any ideas? How did you implement IMAQ select rectangle in your code? It is easier to see the structure/architect of your code before i can comment anything. However, I have a feeling that you are having this function in a loop or some sort, be careful on dataflow in LabVIEW. Below is a simple example on how you can set the window position, dont forget the window number: Quote Link to comment
Fresnel Posted November 25, 2008 Author Report Share Posted November 25, 2008 QUOTE (Minh Pham @ Nov 23 2008, 09:43 PM) How did you implement IMAQ select rectangle in your code? It is easier to see the structure/architect of your code before i can comment anything.However, I have a feeling that you are having this function in a loop or some sort, be careful on dataflow in LabVIEW. Below is a simple example on how you can set the window position, dont forget the window number: I realised on friday that I had it in a loop, hence why it kept asking me to select rectangle. Here is a screenshot of the front panel. I have selected a rectangular ROI. I would like to be able to place it on the block diagram and use this ROI area as my new image, but can't find a way of doing this just now. Quote Link to comment
asbo Posted November 25, 2008 Report Share Posted November 25, 2008 QUOTE (Fresnel @ Nov 24 2008, 06:39 AM) I realised on friday that I had it in a loop, hence why it kept asking me to select rectangle. Here is a screenshot of the front panel. I have selected a rectangular ROI. I would like to be able to place it on the block diagram and use this ROI area as my new image, but can't find a way of doing this just now. You forgot the screenshot part Quote Link to comment
Minh Pham Posted November 26, 2008 Report Share Posted November 26, 2008 You have already done the 1st part is: selected the ROI by using the 'IMAQ Select Rectangle' vi I would think you can finish the task off by changing the rectangle output generated by the 1st step into a ROI using 'IMAQ Convert Rectangle to ROI' vi Hope this helps Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.