Live Anaglyph Display of scene using a Single Camera - General Discussion and Assistance - CHDK Forum

Live Anaglyph Display of scene using a Single Camera

  • 3 Replies
  • 4888 Views
Live Anaglyph Display of scene using a Single Camera
« on: 06 / February / 2008, 05:44:33 »
Advertisements
Hi GrAnd.

Your reply to my video buffer question gives me an idea   :)

You can take stereo photos of a static subject by moving the camera a certain amount between each exposure.

The stereo-depth depends on how large that movement is.

Before I investigate this in detail, please advise if the following is possible :-

On shutter half-press, the buffer returned by vid_get_viewport_fb is stored in memory.

That image has its blue and green components removed and is copied to the OSD buffer.

vid_get_viewport_live_fb   copies the live image to a buffer, removes the red component and copies back to live image.


We can then see the result of the camera shift in stereo by using red/cyan anaglyph glasses ?



David

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Live Anaglyph Display of scene using a Single Camera
« Reply #1 on: 06 / February / 2008, 06:41:47 »
These two buffers have two totally different formats of image. The viewport is 720x240(230) in UYVYYY fornat (not RGB). The OSD buffer (360x240) contains palette-based (some kind of 16 colors with transparent effects depends on its combination) picture. So, it 's useless for displaying a photo. Of course you can try to combine pictures in the viewport buffer. But you will still neeed to do YUV->RGB->YUV transformation.
CHDK Developer.

*

Offline RyeBrye

  • **
  • 73
  • SD-870
Re: Live Anaglyph Display of scene using a Single Camera
« Reply #2 on: 06 / February / 2008, 15:20:03 »
This sounds like a similar process that happens when I use the default Canon "Panorama-Assist" - where it will put the right edge of the last image in a transparent overlay on the left side of the OSD... etc.

If you break into Canon headquarters and steal the source code, that might be a good place to start ;)

Re: Live Anaglyph Display of scene using a Single Camera
« Reply #3 on: 06 / February / 2008, 16:57:28 »
This sounds like a similar process that happens when I use the default Canon "Panorama-Assist"


Yes, I did think of that, have no idea how you would do it.

Anyway, I will ponder this.

Studying CHDK code is a great way of learning 'C', frustrating initially and then becoming easier   :)


David

 

Related Topics


SimplePortal © 2008-2014, SimplePortal