Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: sync stereo with lidar

2018-04-16 Thread Elphel Support
Hi, Winston

You may use scp command ( https://linux.die.net/man/1/scp )  to copy files. For 
convenience you may also run
ssh-copy-id root@192.168.0.9 (or whatever IP you have) so the ssh and scp 
commands will not ask for the password.

Of course it all applies to GNU/Linux OS. MS Windows may have something 
similar, I do not know.

Andrey

 On Sun, 15 Apr 2018 23:46:54 -0700 Winston 
Zhangwinston.zh...@blacksesame.com.cn wrote  

Hi, Andrey
   That way is work. Is there any way to download the files on the camera 
disk to the computer? I downloaded it from the web. It was so slow to download 
all the files.
  
 
 
   
 Best Regrad!
 Yicheng-Zhang
 Email:  winston.zh...@blacksesame.com.cn
 Teil:18516291005
 Addr:   707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong area
 
  
   发件人: Elphel Support [mailto:support-list@support.elphel.com] 
 发送时间: 2018年4月16日 星期一 11:40
 收件人: Winston Zhang winston.zh...@blacksesame.com.cn; Elphel List 
support-list@support.elphel.com
 抄送: Allen Yin allen@blacksesame.com.cn; Pioneer Li 
pioneer...@blacksesame.com.cn; Tao Zhang 
tao.zh...@blacksesame.com.cn; Qun Gu qun...@blacksesame.com
 主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: sync stereo with lidar
 
 
  
  Hello Winston,
 
 You may try to delete all autocampars*.* files from /etc/elphel393 in the 
camera and reboot. Your saved settings will be lost - you may first copy 
autocampars*.xml somewhere else or just use *.backup files if you did not 
reboot too many times since you've got that problem.
 
 If after boot camera will not find those files, it will create default ones.
 
 Andrey
   
  On Sun, 15 Apr 2018 19:59:09 -0700 Winston Zhang 
winston.zh...@blacksesame.com.cn wrote  
 
Hi Andrey!
   The camera could be ping success. And the camera Linux system could be 
login. 
  
 
 

  Best Regrad!
  Yicheng-Zhang
  Email:  winston.zh...@blacksesame.com.cn
  Teil:18516291005
  Addr:   707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong 
area
 
  
   发件人: Winston Zhang 
 发送时间: 2018年4月16日 星期一 10:54
 收件人: 'Elphel Support' support-list@support.elphel.com; Allen Yin 
allen@blacksesame.com.cn
 抄送: Pioneer Li pioneer...@blacksesame.com.cn; Tao Zhang 
tao.zh...@blacksesame.com.cn; Qun Gu qun...@blacksesame.com
 主题: 答复: [Elphel-support] 答复: 答复: 答复: 答复: sync stereo with lidar
 
 
  
 Hi, Andrey
   Today, I met an problem. The camera setting web 
http://192.168.0.9/autocampars.php?sensor_port=0 and other related web were not 
be opened. This problem was not met ago. I guessed some setting of my internet 
was wrong, such as proxy setting. And I found an new clear computer and tried 
it again, and the problem was always there. So, I want to know why? Did you 
update the web services?
  
 
 

  Best Regrad!
  Yicheng-Zhang
  Email:  winston.zh...@blacksesame.com.cn
  Teil:18516291005
  Addr:   707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong 
area
 
  
   发件人: Elphel Support [mailto:support-list@support.elphel.com] 
 发送时间: 2018年3月22日 星期四 8:01
 收件人: Allen Yin allen@blacksesame.com.cn; Elphel List 
support-list@support.elphel.com
 抄送: Pioneer Li pioneer...@blacksesame.com.cn; Tao Zhang 
tao.zh...@blacksesame.com.cn; Qun Gu qun...@blacksesame.com; 
Winston Zhang winston.zh...@blacksesame.com.cn
 主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: sync stereo with lidar
 
 
  
  Hello Allen,
 
 I fixed master branch, should work now
 
 Andrey
   
  On Wed, 21 Mar 2018 01:25:58 -0700 Allen 
Yinallen@blacksesame.com.cn wrote  
 
Hi Andrey,
  
 I have a try on the Ubuntu 14.04.
  
 It seems there are some conflicts in the code. When I compile, there are some 
error. But I press run, ImageJ will work. I don’t know why. All steps follow 
the web page.
  
 If we get the gamma value, how to calculate the 12-bit pixel value. If gamma 
is 0.57, equation is: out(8bit) = a*in(12bit)^0.57, a = 2 .23? 
  
 Thanks,
  
 Allen Yin
  
   发件人: Elphel Support support-list@support.elphel.com 
 发送时间: 2018年3月21日, 星期三 0:40
 收件人: Allen Yin allen@blacksesame.com.cn; Elphel List 
support-list@support.elphel.com
 抄送: Tao Zhang tao.zh...@blacksesame.com.cn; Pioneer Li 
pioneer...@blacksesame.com.cn; Winston Zhang 
winston.zh...@blacksesame.com.cn; Qun Gu 
qun...@blacksesame.com; Elphel Sales | Olga Filippova 
sa...@elphel.com
 主题: Re: 答复: [Elphel-support] 答复: 答复: sync stereo with lidar
 
 
  
Hello Allen,
 
 I can not reproduce your setup because we do not have any computer with MS 
Windows here, I haven't used this family of OS since 2001. Yes, Eclipse is a 
multi-platform program, but we never tested our code with Windows, so there 
could be our bugs when running on Windows.
 
 Can you please try installation it with (K)ubuntu 16.04 LTS? Then I will be 
able to reproduce all the steps.
 
 Andrey
   
  On Tue, 20 Mar 2018 02:35:29 -0700 Allen 
Yinallen@blacksesame.com.cn wrote  
 
Hi Andrey,
  
 I follow

[Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: sync stereo with lidar

2018-04-16 Thread Winston Zhang
Hi, Andrey
  That way is work. Is there any way to download the files on the camera 
disk to the computer? I downloaded it from the web. It was so slow to download 
all the files.



Best Regrad!
Yicheng-Zhang
Email:  winston.zh...@blacksesame.com.cn
Teil:18516291005
Addr:   707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong area

发件人: Elphel Support [mailto:support-list@support.elphel.com]
发送时间: 2018年4月16日 星期一 11:40
收件人: Winston Zhang <winston.zh...@blacksesame.com.cn>; Elphel List 
<support-list@support.elphel.com>
抄送: Allen Yin <allen@blacksesame.com.cn>; Pioneer Li 
<pioneer...@blacksesame.com.cn>; Tao Zhang <tao.zh...@blacksesame.com.cn>; Qun 
Gu <qun...@blacksesame.com>
主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: sync stereo with lidar

Hello Winston,

You may try to delete all autocampars*.* files from /etc/elphel393 in the 
camera and reboot. Your saved settings will be lost - you may first copy 
autocampars*.xml somewhere else or just use *.backup files if you did not 
reboot too many times since you've got that problem.

If after boot camera will not find those files, it will create default ones.

Andrey

 On Sun, 15 Apr 2018 19:59:09 -0700 Winston Zhang 
<winston.zh...@blacksesame.com.cn<mailto:winston.zh...@blacksesame.com.cn>> 
wrote 
Hi Andrey!
  The camera could be ping success. And the camera Linux system could be 
login.



Best Regrad!
Yicheng-Zhang
Email:  
winston.zh...@blacksesame.com.cn<mailto:winston.zh...@blacksesame.com.cn>
Teil:18516291005
Addr:   707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong area

发件人: Winston Zhang
发送时间: 2018年4月16日 星期一 10:54
收件人: 'Elphel Support' 
<support-list@support.elphel.com<mailto:support-list@support.elphel.com>>; 
Allen Yin <allen@blacksesame.com.cn<mailto:allen@blacksesame.com.cn>>
抄送: Pioneer Li 
<pioneer...@blacksesame.com.cn<mailto:pioneer...@blacksesame.com.cn>>; Tao 
Zhang <tao.zh...@blacksesame.com.cn<mailto:tao.zh...@blacksesame.com.cn>>; Qun 
Gu <qun...@blacksesame.com<mailto:qun...@blacksesame.com>>
主题: 答复: [Elphel-support] 答复: 答复: 答复: 答复: sync stereo with lidar

Hi, Andrey
  Today, I met an problem. The camera setting web 
http://192.168.0.9/autocampars.php?sensor_port=0 and other related web were not 
be opened. This problem was not met ago. I guessed some setting of my internet 
was wrong, such as proxy setting. And I found an new clear computer and tried 
it again, and the problem was always there. So, I want to know why? Did you 
update the web services?



Best Regrad!
Yicheng-Zhang
Email:  
winston.zh...@blacksesame.com.cn<mailto:winston.zh...@blacksesame.com.cn>
Teil:18516291005
Addr:   707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong area

发件人: Elphel Support [mailto:support-list@support.elphel.com]
发送时间: 2018年3月22日 星期四 8:01
收件人: Allen Yin 
<allen@blacksesame.com.cn<mailto:allen@blacksesame.com.cn>>; Elphel 
List <support-list@support.elphel.com<mailto:support-list@support.elphel.com>>
抄送: Pioneer Li 
<pioneer...@blacksesame.com.cn<mailto:pioneer...@blacksesame.com.cn>>; Tao 
Zhang <tao.zh...@blacksesame.com.cn<mailto:tao.zh...@blacksesame.com.cn>>; Qun 
Gu <qun...@blacksesame.com<mailto:qun...@blacksesame.com>>; Winston Zhang 
<winston.zh...@blacksesame.com.cn<mailto:winston.zh...@blacksesame.com.cn>>
主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: sync stereo with lidar

Hello Allen,

I fixed master branch, should work now

Andrey

 On Wed, 21 Mar 2018 01:25:58 -0700 Allen 
Yin<allen@blacksesame.com.cn<mailto:allen@blacksesame.com.cn>> wrote 

Hi Andrey,

I have a try on the Ubuntu 14.04.

It seems there are some conflicts in the code. When I compile, there are some 
error. But I press run, ImageJ will work. I don’t know why. All steps follow 
the web page.

If we get the gamma value, how to calculate the 12-bit pixel value. If gamma is 
0.57, equation is: out(8bit) = a*in(12bit)^0.57, a = 2 .23?

Thanks,

Allen Yin

发件人: Elphel Support 
<support-list@support.elphel.com<mailto:support-list@support.elphel.com>>
发送时间: 2018年3月21日, 星期三 0:40
收件人: Allen Yin 
<allen@blacksesame.com.cn<mailto:allen@blacksesame.com.cn>>; Elphel 
List <support-list@support.elphel.com<mailto:support-list@support.elphel.com>>
抄送: Tao Zhang 
<tao.zh...@blacksesame.com.cn<mailto:tao.zh...@blacksesame.com.cn>>; Pioneer Li 
<pioneer...@blacksesame.com.cn<mailto:pioneer...@blacksesame.com.cn>>; Winston 
Zhang 
<winston.zh...@blacksesame.com.cn<mailto:winston.zh...@blacksesame.com.cn>>; 
Qun Gu <qun...@blacksesame.com<mailto:qun...@blacksesame.com>>; Elphel Sales | 
Olga Filippova <sa...@elphel.com<mailto:sa...@elphel.com>>
主题: Re: 答复: [Elphel-sup

Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: sync stereo with lidar

2018-03-27 Thread Elphel Support
Hi Tao,

As the camera  relies on normal image processing for its operation, the easiest 
thing will be to disable most automatic functionality and use Python program to 
directly interface the FPGA, read data array. We will create instructions, but 
there will be no significant difference for your image processing algorithms as 
I explained in my reply to Allen. This mode is mostly for the testing of the 
camera itself, its FPGA and it does not improve 3-d reconstruction, there are 
other much more efficient ways to do that.

Andrey

 On Tue, 27 Mar 2018 03:15:34 -0700 Tao 
Zhangtao.zh...@blacksesame.com.cn wrote  

Hi Andrey,
 We now can restore 12 bit as the method you described. But that 12 bit is 
lossy. We want lossless 12 bit or 10 bit data from camera to verify our 
algorithm. Can you help give that guide?
  
 Thanks
  
  Tao Zhang
 章   涛
 
  
   发件人: Allen Yin 
 发送时间: 2018年3月27日 16:34
 收件人: Elphel Support support-list@support.elphel.com
 抄送: Pioneer Li pioneer...@blacksesame.com.cn; Tao Zhang 
tao.zh...@blacksesame.com.cn; Qun Gu qun...@blacksesame.com; 
Winston Zhang winston.zh...@blacksesame.com.cn
 主题: 答复: [Elphel-support] 答复: 答复: 答复: 答复: 答复: sync stereo with lidar
 
 
  
 Hi Andrey,
  
 Could we bypass the “gamma” module in the FPGA?  We want the original raw data 
from sensor.
  
 Thanks,
  
 Allen Yin
  
   发件人: Elphel Support support-list@support.elphel.com 
 发送时间: 2018年3月22日, 星期四 23:23
 收件人: Allen Yin allen@blacksesame.com.cn; Elphel List 
support-list@support.elphel.com
 抄送: Pioneer Li pioneer...@blacksesame.com.cn; Tao Zhang 
tao.zh...@blacksesame.com.cn; Qun Gu qun...@blacksesame.com; 
Winston Zhang winston.zh...@blacksesame.com.cn
 主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: sync stereo with lidar
 
 
  
  Allen,
 ~/.imagej/Eyesis_Correction.xml is not really needed - it just hides/reveals 
some experimental buttons on the interface
 This is the contents of such file:
 ?xml version="1.0" encoding="UTF-8"?
 !DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd";
 properties
 commentlast updated Thu Sep 08 14:09:47 MDT 2016/comment
 entry key="ADVANCED_MODE"False/entry
 entry key="DCT_MODE"False/entry
 entry key="MODE_3D"False/entry
 /properties
 
 
 result.jpg looks correct. It should be super-contrast as it is linear, so it 
CAN NOT be saved as JPEG - it needs either 16 bits or 32 bit TIFF as when you 
save it from imageJ (save as tiff). And it is "monochrome" - each pixel 
corresponds to the sensor pixel value. For you application I would recommend to 
use just green subchannel (checkerboard pattern, half of all pixels) - in that 
case you do not need to have aberration correction.
 
 Your plots for gamma seem correct too, to be sure I need to look into the code 
again - I wrote that part several years ago.
 
 Gamma is not changed automatically in the camera, but you may change it using 
one of the interfaces - camvc of just parsedit. In addition to the power (0.57) 
there is another parameter - dark level - the sensor adjusts its ADC to have 
output level of 160 (on 4096 scale) or 10(256) for the complete darkness, 
so-called "fat zero". 
 
 Gamma is applied inside the FPGA and parameters are saved in the Exif header, 
so for processing it is possible to "undo" gamma and restore linear scale.
 
 Andrey
   
  On Thu, 22 Mar 2018 00:58:53 -0700 Allen 
Yinallen@blacksesame.com.cn wrote  
 
Hi Andrey,
  
 There seems to be an another error, “2.jpg”. 
 
 I have some doubts, could you please help me?
  
 1. Does gamma value remain unchanged when camera works ?  Who realize this 
gamma mapping, sensor or ISP?
  
 2. When gamma0 = gamma1 = gamma2= gamma3 = 0.57, gamma_scale0 = 
gamma_scale1 = gamma_scale2 = gamma_scale3 = 1024,
  
  gamma mapping  is  Vout = a*Vin^gamma, a = 2.23  gamma = 0.57 , is it right? 
If not right, could you tell me the right? I use this gamma curve to convert 
the 12bit raw data, “result.jpg” is the result.
  
  
 
 
  
  
 
  
 
 ___ 
Support-list mailing list 
Support-list@support.elphel.com 
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com 





___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com


Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: sync stereo with lidar

2018-03-27 Thread Elphel Support
Hello Allen,

Yes, it is possible to bypass gamma module in FPGA, but there is not much user 
software for this mode as while reducing frame rate twice (when doing in-camera 
processing) and even more if you'll try to send data over the network (you'll 
have to send 10 MB of data for each image instead of ~2MB for the almost 
lossless compression). So with GigE (~100MB/s) and even only 2 of 4 5MPix 
sensors you can even theoretically get 5 fps.

And the noise reduction will be 30% at most.

You see, image acquisition itself is _lossy_ by the laws of physics. If you 
have exactly the same scene, exactly the same illumination and acquire two 
image sets - they will be different, and the largest contributor for the modern 
high-quality sensors will be shot noise caused by the quantum nature of the 
light measurement by the sensor pixels and that there could be no 0.5 e- 
charge. So if the pixel full well capacity (number of electrons it can store) 
was 1 (it is actually less than 8 for 5 MPix), than for the bright scenes 
(say  9900 electrons in the pixel) it will vary +/-sqrt(1) = +/- 100 or 1% 
of the full scale. So there is just a probability, same scene can result in 
1 or 9800 electrons (even vary more with less probability). There is not 
much sense to preserve each count, and say that pixel had exactly 9912 
electrons if the uncertainty is +/-100 e-. It is like when there is polling 
over a limited (say 3000 people) and they say result percentage and a margin of 
error.

So while it is possible to acquire data in 2-byte format bypassing the gamma, 
the gain is very small, but the loss in the bandwidth is high. Even for 
in-camera processing, because of the external memory bandwidth (and in 393 we 
use dedicated DDR memory chip for just the FPGA and utilize ~95% of the memory 
bandwidth) we still use gamma compression/decompression to increase the 
bandwidth.

Andrey




 On Tue, 27 Mar 2018 01:34:18 -0700 Allen 
Yinallen@blacksesame.com.cn wrote  

Hi Andrey,
  
 Could we bypass the “gamma” module in the FPGA?  We want the original raw data 
from sensor.
  
 Thanks,
  
 Allen Yin
  
   发件人: Elphel Support support-list@support.elphel.com 
 发送时间: 2018年3月22日, 星期四 23:23
 收件人: Allen Yin allen@blacksesame.com.cn; Elphel List 
support-list@support.elphel.com
 抄送: Pioneer Li pioneer...@blacksesame.com.cn; Tao Zhang 
tao.zh...@blacksesame.com.cn; Qun Gu qun...@blacksesame.com; 
Winston Zhang winston.zh...@blacksesame.com.cn
 主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: sync stereo with lidar
 
 
  
  Allen,
 ~/.imagej/Eyesis_Correction.xml is not really needed - it just hides/reveals 
some experimental buttons on the interface
 This is the contents of such file:
 ?xml version="1.0" encoding="UTF-8"?
 !DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd";
 properties
 commentlast updated Thu Sep 08 14:09:47 MDT 2016/comment
 entry key="ADVANCED_MODE"False/entry
 entry key="DCT_MODE"False/entry
 entry key="MODE_3D"False/entry
 /properties
 
 
 result.jpg looks correct. It should be super-contrast as it is linear, so it 
CAN NOT be saved as JPEG - it needs either 16 bits or 32 bit TIFF as when you 
save it from imageJ (save as tiff). And it is "monochrome" - each pixel 
corresponds to the sensor pixel value. For you application I would recommend to 
use just green subchannel (checkerboard pattern, half of all pixels) - in that 
case you do not need to have aberration correction.
 
 Your plots for gamma seem correct too, to be sure I need to look into the code 
again - I wrote that part several years ago.
 
 Gamma is not changed automatically in the camera, but you may change it using 
one of the interfaces - camvc of just parsedit. In addition to the power (0.57) 
there is another parameter - dark level - the sensor adjusts its ADC to have 
output level of 160 (on 4096 scale) or 10(256) for the complete darkness, 
so-called "fat zero". 
 
 Gamma is applied inside the FPGA and parameters are saved in the Exif header, 
so for processing it is possible to "undo" gamma and restore linear scale.
 
 Andrey
 
 
   
  On Thu, 22 Mar 2018 00:58:53 -0700 Allen 
Yinallen@blacksesame.com.cn wrote  
 
Hi Andrey,
  
 There seems to be an another error, “2.jpg”. 
 
 I have some doubts, could you please help me?
  
 1. Does gamma value remain unchanged when camera works ?  Who realize this 
gamma mapping, sensor or ISP?
  
 2. When gamma0 = gamma1 = gamma2= gamma3 = 0.57, gamma_scale0 = 
gamma_scale1 = gamma_scale2 = gamma_scale3 = 1024,
  
  gamma mapping  is  Vout = a*Vin^gamma, a = 2.23  gamma = 0.57 , is it right? 
If not right, could you tell me the right? I use this gamma curve to convert 
the 12bit raw data, “result.jpg” is the result.
  
  
 
 
  
  
 
  
 
 ___ 
Support-list mailing list 
Support-list@supp

[Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: sync stereo with lidar

2018-03-27 Thread Tao Zhang
Hi Andrey,
We now can restore 12 bit as the method you described. But that 12 bit is 
lossy. We want lossless 12 bit or 10 bit data from camera to verify our 
algorithm. Can you help give that guide?

Thanks

Tao Zhang
章   涛

发件人: Allen Yin
发送时间: 2018年3月27日 16:34
收件人: Elphel Support <support-list@support.elphel.com>
抄送: Pioneer Li <pioneer...@blacksesame.com.cn>; Tao Zhang 
<tao.zh...@blacksesame.com.cn>; Qun Gu <qun...@blacksesame.com>; Winston Zhang 
<winston.zh...@blacksesame.com.cn>
主题: 答复: [Elphel-support] 答复: 答复: 答复: 答复: 答复: sync stereo with lidar

Hi Andrey,

Could we bypass the “gamma” module in the FPGA?  We want the original raw data 
from sensor.

Thanks,

Allen Yin

发件人: Elphel Support 
<support-list@support.elphel.com<mailto:support-list@support.elphel.com>>
发送时间: 2018年3月22日, 星期四 23:23
收件人: Allen Yin 
<allen@blacksesame.com.cn<mailto:allen@blacksesame.com.cn>>; Elphel 
List <support-list@support.elphel.com<mailto:support-list@support.elphel.com>>
抄送: Pioneer Li 
<pioneer...@blacksesame.com.cn<mailto:pioneer...@blacksesame.com.cn>>; Tao 
Zhang <tao.zh...@blacksesame.com.cn<mailto:tao.zh...@blacksesame.com.cn>>; Qun 
Gu <qun...@blacksesame.com<mailto:qun...@blacksesame.com>>; Winston Zhang 
<winston.zh...@blacksesame.com.cn<mailto:winston.zh...@blacksesame.com.cn>>
主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: sync stereo with lidar

Allen,
~/.imagej/Eyesis_Correction.xml is not really needed - it just hides/reveals 
some experimental buttons on the interface
This is the contents of such file:

http://java.sun.com/dtd/properties.dtd;>

last updated Thu Sep 08 14:09:47 MDT 2016
False
False
False



result.jpg looks correct. It should be super-contrast as it is linear, so it 
CAN NOT be saved as JPEG - it needs either 16 bits or 32 bit TIFF as when you 
save it from imageJ (save as tiff). And it is "monochrome" - each pixel 
corresponds to the sensor pixel value. For you application I would recommend to 
use just green subchannel (checkerboard pattern, half of all pixels) - in that 
case you do not need to have aberration correction.

Your plots for gamma seem correct too, to be sure I need to look into the code 
again - I wrote that part several years ago.

Gamma is not changed automatically in the camera, but you may change it using 
one of the interfaces - camvc of just parsedit. In addition to the power (0.57) 
there is another parameter - dark level - the sensor adjusts its ADC to have 
output level of 160 (on 4096 scale) or 10(256) for the complete darkness, 
so-called "fat zero".

Gamma is applied inside the FPGA and parameters are saved in the Exif header, 
so for processing it is possible to "undo" gamma and restore linear scale.

Andrey

 On Thu, 22 Mar 2018 00:58:53 -0700 Allen 
Yin<allen@blacksesame.com.cn<mailto:allen@blacksesame.com.cn>> wrote 

Hi Andrey,

There seems to be an another error, “2.jpg”.

I have some doubts, could you please help me?


1. Does gamma value remain unchanged when camera works ?  Who realize this 
gamma mapping, sensor or ISP?


2. When gamma0 = gamma1 = gamma2= gamma3 = 0.57, gamma_scale0 = 
gamma_scale1 = gamma_scale2 = gamma_scale3 = 1024,


gamma mapping  is  Vout = a*Vin^gamma, a = 2.23  gamma = 0.57 , is it right? If 
not right, could you tell me the right? I use this gamma curve to convert the 
12bit raw data, “result.jpg” is the result.




___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com


[Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: sync stereo with lidar

2018-03-27 Thread Allen Yin
Hi Andrey,

Could we bypass the “gamma” module in the FPGA?  We want the original raw data 
from sensor.

Thanks,

Allen Yin

发件人: Elphel Support <support-list@support.elphel.com>
发送时间: 2018年3月22日, 星期四 23:23
收件人: Allen Yin <allen@blacksesame.com.cn>; Elphel List 
<support-list@support.elphel.com>
抄送: Pioneer Li <pioneer...@blacksesame.com.cn>; Tao Zhang 
<tao.zh...@blacksesame.com.cn>; Qun Gu <qun...@blacksesame.com>; Winston Zhang 
<winston.zh...@blacksesame.com.cn>
主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: sync stereo with lidar

Allen,
~/.imagej/Eyesis_Correction.xml is not really needed - it just hides/reveals 
some experimental buttons on the interface
This is the contents of such file:

http://java.sun.com/dtd/properties.dtd;>

last updated Thu Sep 08 14:09:47 MDT 2016
False
False
False



result.jpg looks correct. It should be super-contrast as it is linear, so it 
CAN NOT be saved as JPEG - it needs either 16 bits or 32 bit TIFF as when you 
save it from imageJ (save as tiff). And it is "monochrome" - each pixel 
corresponds to the sensor pixel value. For you application I would recommend to 
use just green subchannel (checkerboard pattern, half of all pixels) - in that 
case you do not need to have aberration correction.

Your plots for gamma seem correct too, to be sure I need to look into the code 
again - I wrote that part several years ago.

Gamma is not changed automatically in the camera, but you may change it using 
one of the interfaces - camvc of just parsedit. In addition to the power (0.57) 
there is another parameter - dark level - the sensor adjusts its ADC to have 
output level of 160 (on 4096 scale) or 10(256) for the complete darkness, 
so-called "fat zero".

Gamma is applied inside the FPGA and parameters are saved in the Exif header, 
so for processing it is possible to "undo" gamma and restore linear scale.

Andrey


 On Thu, 22 Mar 2018 00:58:53 -0700 Allen 
Yin<allen@blacksesame.com.cn<mailto:allen@blacksesame.com.cn>> wrote 

Hi Andrey,

There seems to be an another error, “2.jpg”.

I have some doubts, could you please help me?


1. Does gamma value remain unchanged when camera works ?  Who realize this 
gamma mapping, sensor or ISP?


2. When gamma0 = gamma1 = gamma2= gamma3 = 0.57, gamma_scale0 = 
gamma_scale1 = gamma_scale2 = gamma_scale3 = 1024,


gamma mapping  is  Vout = a*Vin^gamma, a = 2.23  gamma = 0.57 , is it right? If 
not right, could you tell me the right? I use this gamma curve to convert the 
12bit raw data, “result.jpg” is the result.




___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com


Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: sync stereo with lidar

2018-03-09 Thread Elphel Support
Hello Allen,

What exactly problems do you have with ImageJ? The code you need is in one 
file, here is the method 
https://git.elphel.com/Elphel/imagej-elphel/blob/master/src/main/java/JP46_Reader_camera.java#L415

You see, there are several programs to convert JP4 (Google created their own 
that we do not have access to), and ourselves we use the ImageJ version, so it 
is the most current. Over the years we added more data to Exif (mostly to 
MakerNote field), and the ImageJ version opens current as well as older 
versions (conditions like if (MakerNote.length=14) {...)

Boolean COMPOSITE marks composite frames as in Eyesis4pi - the single image 
contains 3 vertically merged individual images).

I would still recommend to install ImageJ (we can try to help with specific 
problems), and then use it as a reference for you code.

Andrey


 On Fri, 09 Mar 2018 00:54:11 -0800 Allen Yin 
allen@blacksesame.com.cn wrote  
Hi Andrey,
  
 If I want to get gamma conversion parameters from EXIF data , can I use 
“identify” command in Linux?  Or I can only use ImageJ plugin. 
  
 I try to use ImageJ and plugin, it’s difficult to setup the environment.
  
 Attached is  EXIF data get by “identify”, how to get the gamma value?
  
 Thanks,
  
 Allen Yin
  
   发件人: Elphel Support support-list@support.elphel.com 
 发送时间: 2018年3月8日, 星期四 10:37
 收件人: Winston Zhang winston.zh...@blacksesame.com.cn
 抄送: Elphel Sales | Olga Filippova sa...@elphel.com; Tao Zhang 
tao.zh...@blacksesame.com.cn; Qun Gu qun...@blacksesame.com; 
Pioneer Li pioneer...@blacksesame.com.cn; Allen Yin 
allen@blacksesame.com.cn
 主题: Re: 答复: 答复: [Elphel-support] 答复:  答复: 答复: sync stereo with lidar
 
 
  
  Hello Winston,
 
 Tomorrow Oleg will try to reproduce your settings - so far we did not have 
such problems.
 
 BTW, you can set same parameters on multiple ports simultaneously, using 
"Broadcast Mask" (hex number 0..f)
 Port 0: 1
 port 1 - 2
 port 2 - 4
 port 3 - 8,
 
 So broadcast mask 3 will set the same mode on ports 0 and 1.
 
 About bits I tried to explain in the previous messages and the "How many 
bits..." in the article.
 
 Sensor provides 12 bits, and each bit is important in the shadows. But not in 
the bright light because of the shot noise that is caused just by the fact that 
each pixel can store only integer number of electrons. And so while all bits 
are important, there are not 4096 meaningful levels for each pixel, but 
significantly less (see "How many bits..."). Gamma conversion uses non-linear 
scale to represent pixel values with steps proportional to the shot noise 
(steps are smaller). The gamma conversion parameters are saved in the Exif 
header of the JP4 file, and if you open files with ImageJ plugin, it takes care 
of the Exif data and restores linear data proportional to the pixel raw values, 
then you can save it as  32-bit Tiff file.
 
 Andrey
 
 
 
 
  Hi, Andrey
  I met a new question. I set ‘Color’ parameter with the five(it could get 
the jp4 format image)on one camera, and this camera image format was converted. 
But when I set the other one, this camera image format was not converted. 
Please help me test for it. 
  Another question
  What is the raw jp4 format image with 100% compression bit wide? I read 
it and the result show the bit wide is uint8. But you web shows that the bit 
wide is 12bit.
  
  
  
  
  Best Regrad!
  Yicheng-Zhang
  Email: winston.zh...@blacksesame.com.cn
  Teil: 18516291005
  Addr: 707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong 
area
 
  
 
 ___ 
Support-list mailing list 
Support-list@support.elphel.com 
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com 





___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com