PDA

View Full Version : Filter problem



EHi
April 9, 2009, 10:35:34
I'm working with routine to read in and set the filter values. Below are some (modified) lines from code

'LiveStart made earlier
'iControl.VideoFormatCurrent.Width returns 640
'VideoFormatCurrent.Height returns 480

Dim RotateFlipFilter As TIS.Imaging.FrameFilter
Dim ROIFilter As TIS.Imaging.FrameFilter
iControl.LiveStop()
iControl.DeviceFrameFilters.Clear()
...
ROIFilter = iControl.FrameFilterCreate("ROI", "")
RotateFlipFilter = iControl.FrameFilterCreate("Rotate Flip", "")
...
iControl.DeviceFrameFilters.Add(RotateFlipFilter)
iControl.DeviceFrameFilters.Add(ROIFilter)
...
ROIFilter.SetIntParameter("Left", 0)
ROIFilter.SetIntParameter("Top", 0)
ROIFilter.SetIntParameter("Width", 600)
ROIFilter.SetIntParameter("Height", 480)
RotateFlipFilter.SetIntParameter("Rotation Angle", 90)
RotateFlipFilter.SetBoolParameter("Flip V", False)
RotateFlipFilter.SetBoolParameter("Flip H", False)
...
iControl.LiveStart()

'iControl.ImageHeight returns 480
'iControl.ImageWidth returns 480

What is wrong that I don't get the image size (w x h) 480 x 600, as expected? The version of ICImagingControl is 3.1.0.305

Thanks,
<EHi>

Tim Cassens
April 9, 2009, 11:56:47
I tried to reproduce your problem, but was not able to make it appear here.

Could you please zip your project demonstrating the problem and send it to support@imagingcontrol.com so that we can have a closer look at it?

Best regards
Tim Cassens