Your Qitta https://qiita.com/vrn/items/1ac58c61194b23af1d8c was very helpful.
I also translated algorithm.cpp from C to Python.
Ir_dc_max in the code below became a problem.
nume = red_ac * ir_dc_max (n_y_ac *n_x_dc_max)
I thinkir_dc_max indicates "AC+DC" of ir at the peak of the mountain.
If calculate R :(ACred / DCred) / (ACir / DCir), I think that "ir_dc_max" should be DC of ir.
Your Qitta https://qiita.com/vrn/items/1ac58c61194b23af1d8c was very helpful. I also translated algorithm.cpp from C to Python.
Ir_dc_max
in the code below became a problem.nume = red_ac * ir_dc_max (n_y_ac *n_x_dc_max)
I think
ir_dc_max
indicates "AC+DC" of ir at the peak of the mountain. If calculate R :(ACred / DCred) / (ACir / DCir), I think that "ir_dc_max" should be DC of ir.I'm sorry, but I would like to hear your opinion.