How create an .enscam file?

General Information

  • Product: C57-6-M
  • Serial Number: 244888
  • Ensenso SDK Version: 4.0.1502
  • Operating System: Windows 10 64bit
  • C++ Interface

Problem / Question

I would like to create an .enscam file
to evaluate data acquired on-site
using my application software, later using NxView.

Are there any sample codes for creating an .enscam file?

Best regards,
K.N,

Hi @techno,

we have a guide in our manual that explains how to create and use file cameras, both from your own application and NxView: Using File Cameras — Guides - Ensenso SDK 4.3.905 Documentation

If you need more information, just let me know.

Regards,
Raphael

1 Like

Hi Raphael

First, thanks a lot for your quick response!

Q1.I should be experimenting by looking at the manual, but right now there is a camera on site, so I can’t do much testing. Thank you for your reply. Ideally, I should be experimenting by looking at the manual, but right now there is a camera on site, so I can’t do much testing. If possible, could you provide a simple sample code to convert 3D camera and color camera raw images into enscam format?

Q2.Also, what is the difference between the Raw and Rectified images in the Source parameters?

Best regards,
K.N,

NxLibCommand save(cmdSaveFileCamera);
save.parameters()[itmCameras][0] = "244888";
save.parameters()[itmCameras][1] = "244888-Color";
save.parameters()[itmPath] = "/tmp/myfilecamera.enscam";
save.execute();

SaveFileCamera operates on all open cameras by default, so if you only have the 3D and color cameras open, you can omit the Cameras parameter.

The Source parameter specifies whether the camera’s Raw or Rectified images will be saved. As is explained in our guide to the NxLib binary pipeline, the raw images must be rectified before running our stereo matching algorithms on them. Usually, you will want to save the raw images. This will be the default because your C series does not support rectified capture mode.