Re: C3088 CMOS Imaging Sensor Questions
- From: Colin Paul Gloster <Colin_Paul_Gloster@xxxxxxx>
- Date: Fri, 14 Jul 2006 16:30:58 +0200
Paul Carpenter wrote:
"[..]
Are you sure your PIC has enough RAM for your program variables and at least
a buffer 356 x 292 x 2 bytes EACH! Your PIC does have 256kB of RAM at least
I take it. Normally you need at least two buffers for image processing on
whole images so double that memory requirement to 0.5MB!
[..]"
On Fri, 14 Jul 2006 weg22@xxxxxxxxxx wrote:
"[..]
Can you please explain why you need two buffers when doing image
processing (I'm new at this)?"
Well, you could read about the technique of double buffering in animation for DOS games and OpenGL applications and other graphical applications, in which an older image is displayed while a newer image is being computed. After the newer image has been completed, the two buffers can be swapped very quickly so that drawing the new buffer on the screen is performed more smoothly.
I doubt you want to do this, but perhaps Paul Carpenter was thinking of something similar to this (e.g. your robot using the older buffer as its interpretation of the enviornment while making a newer image in the newer buffer).
" My PIC has 3.94 KB of RAM and I probably
won't be processing the entire image...more like a 100 x 292 image.
[..]"
The product of 100 multiplied by 292 is 29200. I am not familiar with the sensor you mentioned, but if it has just 8 bit grayscale resolution you will need 29200 bytes (which is over 28KB) for an image (excluding data structure overhead).
.
- Follow-Ups:
- Re: C3088 CMOS Imaging Sensor Questions
- From: Paul Carpenter
- Re: C3088 CMOS Imaging Sensor Questions
- References:
- C3088 CMOS Imaging Sensor Questions
- From: weg22
- Re: C3088 CMOS Imaging Sensor Questions
- From: Paul Carpenter
- Re: C3088 CMOS Imaging Sensor Questions
- From: weg22
- C3088 CMOS Imaging Sensor Questions
- Prev by Date: Re: C3088 CMOS Imaging Sensor Questions
- Next by Date: Re: 8051 architecture
- Previous by thread: Re: C3088 CMOS Imaging Sensor Questions
- Next by thread: Re: C3088 CMOS Imaging Sensor Questions
- Index(es):
Relevant Pages
|