How do I set RAW modes and long exposures with NexImage?

Celestron's NexImage Solar System Imager is remarkably similar to the Philips ToUcam Pro, at least on the inside. Amateur astronomers have determined how to modify the ToUcam hardware for long exposure imaging and how to modify the internal settings for improved image quality. These same tweaks can be made to the NexImage camera.

RAW Color Mode
There are three aspects of the default operation of the ToUcam Pro (and NexImage) that can cause the image quality to be degraded: 

The color information in the image is reformatted, resulting in a small loss of detail.

The image is compressed to reduce the bandwidth to the PC.

The default image processing settings can result in over-bright colors and loss of fine detail.

Webcam owners have determined how to modify the internal settings of the camera (via a software application) to address these issues. Etienne Bonduelle's Astro Bond site has an excellent description of how to make these changes, which are completely reversible. Below is a summary of the changes.

Modifying the Settings
Warning: Although this process is reversible, care should be taken when following the instructions. Celestron did not develop this process or the applications used to make the modifications -- the camera is your own responsibility. Any damages done are not covered by your product warranty.

Download and install the application to modify the camera:
http://www.burri-web.org/bm98/stuff/wcrmac-1.0.79.zip

Download the latest macros and copy them into the macro folder for WcRmac:
http://astrosurf.com/astrobond/BERaw.zip

Run an application that accesses the webcam.
K3CCDTools or AMCAP is fine.

Run WcRmac, connect to the camera, and click on "Get current and save as" under the binaries tab to save your NexImage's current configuration. This is important in order to restore your camera to the original settings.

Select the "Set Color RAW mode" under the Macros tab and click
on "Run checked."

Go back to your webcam application and in the camera control properties
window, set the defaults back to factory settings.

Using RAW Mode
Now you're capturing images in raw mode and the preview won't show the colors correctly (unless your application supports it). To capture in raw mode: 

Capture the video to an AVI as normal. You must keep the frame rate at 5 fps and you must not use RGB24 mode or else compression will be re-enabled. Use IYUV or I420 mode.


Load the AVI into AviRaw: http://arnholm.org/astro/software/aviraw/
 
Select
"Raw Color" and click on BG or RG to properly display the colors. If the colors do not look right, then try a different setting. Leave the processing at "11-DeBayerToRGB." 

Use AviRaw's "Save As" menu to save the converted AVI to a new file. 

Load and process the new AVI in Registax or the image processing package
of your choice. 

Restoring the Original Settings
To restore the NexImage camera to the original settings: 

Run an application that accesses the webcam. K3CCDTools or AMCAP
is fine. 

Run WcRmac and connect to the camera. 

From the Binaries tab, select your saved binary with the original settings and click on "Load into cam" to restore them. 

Go back to your webcam application and in the camera control properties window, set the defaults back to factory settings. 

Important Notes
Compression will be re-enabled and will stay enabled if you change the frame rate away from 5fps or if RGB24 mode is used. There may be other settings that cause compression to turn back on. The only way to disable compression is to use the "restore factory defaults" button in the camera properties window. When compression is enabled in raw mode, there will be corruption in the color information and pixilation will be seen in some areas of the image. It is sometimes a subtle effect, so it may be best to restore factory defaults at the beginning of each session.

Registax has built-in debayering, but v3.0.1.23 does not appear to work with RAW AVIs from NexImage -- use AviRaw instead. Note that upon first inspection the colors may look correct in Registax but if you look closely you will see pixilation.

Autoguiding applications like GuideDog may not yield accurate results when used in raw mode. It is easy to undo these changes, so I recommend switching back to the original settings when using applications that process the image directly. 

Optimized Color Mode
Optimized color mode is a tweak to the camera's internal settings similar to RAW color mode. However, only the default levels are changed with this mode and so compression and color channel formatting can still cause some image degradation. The process for making the modification is the same as RAW color mode except that a different macro is used. See the Astro Bond pages for more details on this mode.

Long Exposure Modification
Webcam owners have modified their cameras so that exposures are controlled directly via the parallel port instead of using an automatic frame rate. This allows exposures of arbitrary length to be taken, making the camera usable for imaging deep-sky objects. Some acquisition and processing packages like K3CCDTools support these long exposure modifications.

Updated 12/27/13