Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

overlay

Hi
I am using IMAQ in VB6 and i have some problems with overlays...
I have a big image (7000 * 7000) and i plot using overlays functions ovals, rectangles, text....
I have a lot of informations to plot...I want to save the result and so i use the merge functions to make my overlays part of my image!
i have in VB6 the error code 31000...
Other times i only have some overlays (not all) after the merge functions any ideas? How many overlays can we make in an image?


Here is an ewample code:
  imaqdisplay.Image.Overlays(1).DrawRectangle rect, cwimaqOverlayModePaint, vbYellow
  imaqdisplay.Image.Overlays(1).Merge
 
thanks a lot
0 Kudos
Message 1 of 7
(7,906 Views)
Hi kikou,

Can you give me the entire error code? Also, how many overlays are you trying to merge? You should not have an issue with the number of overlays you are merging but you may see that it will take longer to merge a large number of overlays.
--Michelle

National Instruments
0 Kudos
Message 2 of 7
(7,888 Views)

Hi Michelle
It is the error code in VB 31000 (error of execution)
I can do this operation with hundreds of overlays but i have to overlay thousands of regions ;o)
I also have noticed that it is impossible to merge some overlays and later merge other overlays in the same image....
You will have an error, amazing.Should we have to save and read the new image????

Is it possible to clear only some overlays (not all)?

Another question in VB6 how to read an image in an oimaqdisplay and select a Region of interest to view?
Suppose i have an image of 1000 x 10000 and i want to see in the viewer 5000 x 5000....
There is some properties missing in zoom operation such as soomsingle....
In labview you have zoom single property not in VB6

Thanks

PS: I also was an AE ;o)

0 Kudos
Message 3 of 7
(7,879 Views)
Would it be possible for you to upload your image? In the end what are you trying to do? Are you setting thousands of overlays and then trying clear part of them, then add more? What is your end goal?
--Michelle

National Instruments
0 Kudos
Message 4 of 7
(7,861 Views)
Hi
Here is an example of image....
Difficult to explain... My overlays are rectangle, ovals...depending of the kinfd of the particle i have in my image....
I also have a mask, i mean that i have another overlay that separates my image in many regions....

I want to keep the particles , but clear only the "mask" overlay....

When i merge 15000 circles, i only have some of them in the image....
 
Thanks
  
0 Kudos
Message 5 of 7
(7,857 Views)
I apologize for not being more clear, but can you also post the image with the overlays? Thanks!
--Michelle

National Instruments
0 Kudos
Message 6 of 7
(7,836 Views)
Also, what is your end application/goal? Would particle analysis work for this? I've attached a screenshot of an example particle analysis step. The dots are numbered indicators showing where each particle is located.

Thanks!
--Michelle

National Instruments
0 Kudos
Message 7 of 7
(7,832 Views)