PDA

View Full Version : Need to flip the pics of Sony XCD D700



ToP
May 19, 2004, 09:19:14
Hello,

I use the Sony XCD D700 with IC Imaging Control 1.4. If I use the samples to get the first pics. But they are mirrored.

The function grabber->setFlipH(true) doesn't change the result.
In which order I have to use the function?

It seames that the Function grabber->setFlipV() does not "exist" in connection with this camera.

m_pGrabber->setVideoFormat( (*pVideoFormats) [formatIndex] );
m_pGrabber->setHWND( GetSafeHwnd() );
m_pGrabber->setFlipH(true);
m_pGrabber->setFlipV(true);
m_pGrabber->startLive();

Is it possible to flip the pic in the right positon?

Thanks

andreie
May 20, 2004, 13:06:45
I don't know about the programmatical way to change it.

Otherwise, see the file "SonyDriver/readme.doc", if there is any. At least there was for Sony XCD-700 and XCD-710. For these cameras they contain the following instructions:

Registry Settings
In Windows 2000, the sonyfcam.sys registry values are stored in:

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Class/{{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}/000N/Settings/

And in Windows 98SE, the registry values are stored in:

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Class/Image/000N/Settings/

where N is an instance of the driver (see 000N/DriverDesc for the camera model). An important registry entry is Settings/VideoControlMode, which allows the control of vertical image flipping and the external trigger. The VideoControlMode takes on the values defined in the DirectX enum VideoControlFlags. Specifically,

typedef enum tagVideoControlFlags
{
VideoControlFlag_FlipHorizontal = 0x0001,
VideoControlFlag_FlipVertical = 0x0002,
VideoControlFlag_ExternalTriggerEnable = 0x0004,
VideoControlFlag_Trigger = 0x0008
} VideoControlFlags;

For example, to enable external trigger and flip the image, set VideoControlMode=5.

Note that the registry values are only read by the driver when the driver is initialized. Therefore, to change registry values, use the RegEdit application to make the change and then reboot the PC (or disable/enable the driver using the Device Manager, or simply unplug/plug in the camera).

Stefan Geissler
May 21, 2004, 11:12:45
Hello,

for flipping the DCam image, you should use the DCamProp.DLL. Please have a look to the Start menue, Programms->IC Imaging Control 1.41->DCam.

ToP
May 25, 2004, 10:56:00
Hello Stefan,

I tryed to use the "SetSonyFlipH()", but the function the system is not able to flip.


if( SonyFlipHAvailable(m_pGrabber->getDev().c_str()) == 1)
{
message = "Horizontal flipping is available";
}
else
{
message = "Horizontal flipping is not available"; // Result
}
AfxMessageBox( message );

is there any possibility to change th direction?

Thanks
Torsten

ToP
May 25, 2004, 11:08:55
Hello andreie

I tryed also to change the registry. But after I initialize the camera, the value in the registy sets back itself. (VideoControlMode is set to 1 itself)

Do you know, how I can solve it?

Thanks Torsten

Stefan Geissler
May 25, 2004, 11:16:00
Hello Torsten,

Do you use IC 1.4 or IC 1.41? If you use version 1.4 or earlier, please send a request to support@imagingcontrol.com so i can send you an update download link.

To show the image as it comes from the camera, please impement


m_Grabber.setFlipV(false);
m_Grabber.setFlipH(false);
m_Grabber.startLive();

ToP
May 25, 2004, 15:39:23
Hello,

@Stefan
I get an update last week, but these lines doesn't work.

@andreie
I must start the PC after changing the REG. And with flag 2 it works :D

VideoControlFlag_FlipVertical = 0x0002

So my (first) problem is solved, thanks.

The functions isFlipHAvailable() or similar gets negative results.

Torsten

Stefan Geissler
May 25, 2004, 16:24:06
Torsten,

What driver do you use?

ToP
May 26, 2004, 08:30:06
I use IC 1.41.

m_pGrabber->isFlipHAvailable(); // result true
m_pGrabber->isFlipVAvailable(); // result false

but you see no result, if you use the setFlipX()-function

Torsten

Stefan Geissler
May 26, 2004, 08:33:11
Torsten,

Which driver for your camera is installed? Please connect your camera to the computer, go to Settings -> System -> Hardware Tab -> Device Manager. Search your camera in the hardware list and open the properties of the camera. The driver should be listed.

ToP
May 26, 2004, 08:51:58
in this menue i get the driverinfos:

Treiberanbíeter: Sony
Treiberdatum: nicht verfügbar
Treiberversion: 5.0.3000.12

Torsten

Stefan Geissler
May 26, 2004, 09:19:37
Torsten,

This driver does not export all functionality to IC Imaging Control. May try the TIS Sony driver. See http://www.1394imaging.com/products/cameras/xcdx710

at "WDM driver".

The full version of this driver comes for free for Sony DCams bought by The Imaging Source.

ToP
May 26, 2004, 10:17:23
We bought this camera at your company, but on the IC CD is no other driver. How can I get the full version?

Torsten

Stefan Geissler
May 27, 2004, 08:17:36
Torsten,

please send a request containing the serial number of your camera to support@imagingcontrol.com.