View Full Version : MemoryCurrentGrabberColorformat cannot be set
February 14, 2008, 21:24:37
Once I add the RoIFilter to DeviceFrameFilter I am not able to change the pixel format of MemoryCurrentGrabberColorformat.
This is also true if I remove all frame filters from the deviceframefilter collection.
How Can I change the MemoryCurrentGrabberColorformat?
February 15, 2008, 08:05:47
the MemoryCurrentGrabberColorformat can only be called before the live stream is started. Did you do so? (I guess yes...)
I tried this little sample:
Private Sub Form_Load()
ICImagingControl1.Device = ICImagingControl1.Devices.Item(1).Name
ICImagingControl1.MemoryCurrentGrabberColorformat = ICRGB565
Debug.Print ICImagingControl1.ImageBuffers.Item(1).FrameType.B itsPerPixel
It results with the correct number of bits per pixel, in this sample it must be 16.
How did you check this issue?
February 15, 2008, 13:02:58
Yes, I stopped the live stream before setting MemoryCurrentGrabberColorformat.
Changing the value of MemoryCurrentGrabberColorformat works fine as long as no RoI or Flipping frame filter is/was inserted into the device or the sink path*.
If one of the frame filters is or was used the value of MemoryCurrentGrabberColorformat cannot be changed any longer.
*With a frame filter inserted the value of MemoryCurrentGrabberColorformat can be set the first time after the camera was connected (and the stream was not started). Later on no more calls to MemoryCurrentGrabberColorformat are accepted no matter if a frame filter is used or not.
February 15, 2008, 14:02:40
I forward this to the programmers.
February 16, 2008, 09:13:04
Please keep me informed.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.