[Elphel-support] combining frames

Andreas Bean office at beanbox.com
Mon Dec 7 12:34:58 PST 2009


Hello Oleg!

Thank you for working on the new mode.

Elphel Support List schrieb:
> Hi Andreas,
>
>   
>> * only the upper half the image of sensor one and two is shown
>>
>> When you set the vertical size to 960px, do you crop the image (i.e.
>> take the upper half) or do you pick up every second line (to get the
>> full image with half vertical resolution). For my application it is
>> necessary to get the whole image.
>>     
>
> No, I don't crop the image in fpga nor pick every second line - the sensors are programmed to give the frames of the needed size - in case of the combined frame - they are programmed to half resolution, if they alternate - 'full' resolution.
>
>   
But the sensor doesn't give the full field then, does it? If I got it
right it starts at the starting row and column and shows a window with
the specified width and height.
>> upper half the image of sensor one and two is shown
>>     
>
> This depends on what values are written to the registers 0x001(Row Start) & 0x002(Column Start). And you can control it from the camvc:
> 1. Set a smaller resolution, e.g. your 1296x960.
> 2. press camera icon and right under the histogram there's a small preview-like image with frame size parameters - you can grab this image and move around the field - this will reprogram starting row and column.
>
> *if you do it in combined mode - you'll see that both sensors are reprogrammed. To program each sensor individually - you need to set an appropriate channel in 10359_controls.html '1' - sensor 1, '2' - sensor 2 (and '4' for sensor 3), '7' is 'broadcast' - then you can go back to camvc 
>
> Small Note: for the 2nd sensor you'll get combined frame of the 'upper' parts of its frames (I mentioned just to make this less surprising)
>
>   
>> Can you add a parameter to set the
>> scale factor 1/2 1/3 1/4 (taking every second, third, fourth line) for
>> the image in the 10359_combining.php? That would be great!
>>     
>
> This can also be programmed from the camvc - press "more details..." in tab '5' there are controls for skipping & binning. They are not compatible with my 10359_controls.
>
> If I got it right - you want to have 2592x1920 which will be scaled (by skipping rows & columns) with e.g. 1/2 factor vertically and horizontally to 1296x960 and then the frames from sensors will be combined into one. If so, I can add it. Or do you need only vertical scaling?
>   
Yes that's the mode I'm speaking of. Scaling the full field to 1296x960
and then combining the frames together.
> BTW, I measured fps and for the version I sent to you I could get only 10-12 fps and some problems while I was changing starting row/column, so I switched back to buffering only one frame and was able to get 20 fps - and 22 can be reached I think. I also changed the interface and the phases adjusting script. Commited them to our CVS, what you need to get is:
> (DIR=http://elphel.cvs.sourceforge.net/viewvc/elphel/elphel353-8.0/fpga/x359/)
>   
Is it very difficult to implement the alternating A+B / C+D memory
buffering? Because its important to have the frames taken at the same
time. Since buffering of A+B and read-out of C+D and vice versa can
happen at the same time a framerate of 22fps should be possible. Can you
try that? That would be great.
> DIR/x359.bit (copy to ftp://<cam-ip>/etc/)
> DIR/test_scripts/10359_controls.html (-> ftp://<cam-ip>/usr/html/359/)
> DIR/test_scripts/10359_modes.php (-> ftp://<cam-ip>/usr/html/359/)
> +
> http://elphel.cvs.sourceforge.net/viewvc/elphel/elphel353-8.0/packages/web/353/test/test_inner_10359.php (-> ftp://<cam-ip>/usr/html/test/)
>
> Oleg
>   
Andreas
> _______________________________________________
> Support-list mailing list
> Support-list at support.elphel.com
> http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: office.vcf
Type: text/x-vcard
Size: 233 bytes
Desc: not available
URL: <http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20091207/a8a37b42/attachment.vcf>


More information about the Support-list mailing list