Page 1 of 1

Calibrated depth map?

Posted: 14.10.2019 18:15
by vaster04
Hello

I'm using microscope with stepmotor on focus knob. So, I know the distance between stack images along optical axis of microscope, stack step. After processing by Helicon Focus I can obtain depth map. Depth values are distributed between 0 and 255. Is it possible to establish relationship between these values and known stack step, to obtain calibrated depth map?

Thank you for your help

Valeriy

Re: Calibrated depth map?

Posted: 16.10.2019 13:23
by Catherine
Yes, it's possible. If А is a starting point, and B is the end point, the depth map step is (B-А)/255

Re: Calibrated depth map?

Posted: 16.10.2019 16:20
by vaster04
Catherine,

Thanks a lot for your valuable information. It is very important, it seems it should be placed somewhere in Helicon Focus manual, tutorial.

Please, could you inform, is it possible to calibrate depth data, extracted from vertices of *.obj file?

Best regards

Valeriy

Re: Calibrated depth map?

Posted: 21.10.2019 12:32
by Catherine
Depth map can be both obtained from .obj file and saved as a black&white image (exported depth map). The min value (0) corresponds to the first image of the stack, the max value - to the last one. If you know the distance between frames, the depth map can be easily calibrated.

Re: Calibrated depth map?

Posted: 23.10.2019 16:51
by vaster04
Catherine,

Thanks for your reply.

>The min value corresponds to the first image of the stack, the max value - to the last one.
Is this statement correct, if in stack a few first and a few last frames are out of focus? Perhaps, is more correctly to assign to depth step between frames value (B-А)/255?

>Depth map can be both obtained from .obj file and saved as a black&white image (export depth map).
Thank you. Situation with exported depth map file is clear, you have explained it in your reply of 16/10/2019. In this file we have 255 depth levels. But in *.obj file depth data have 4 significant digits, so depth data are quasi continuous and their calibration is not obvious.

Probably, they could be calibrated by comparison of min and max data from gray depth file and assign min and max values of *.obj file to those values, but I don't sure that this is the best calibration way.

Best regards
Valeriy

Re: Calibrated depth map?

Posted: 01.11.2019 15:23
by Catherine
We recommend to use the depth map as a primary source. Data in obj file is formed based on the depth map. Even if the first and the last frames of the stack are out of focus, the depth map is still normalized by the number of files in the stack.

Re: Calibrated depth map?

Posted: 28.11.2019 15:06
by detay
Does the Maximum dept value always 255 or it is changing from the situation to situation?

Re: Calibrated depth map?

Posted: 29.11.2019 19:16
by Catherine
No, it's always 255

Re: Calibrated depth map?

Posted: 07.01.2020 09:18
by detay
Catherine wrote: 29.11.2019 19:16 No, it's always 255
What should be the value of A and B? micron, mm or degree?

Re: Calibrated depth map?

Posted: 18.01.2020 17:15
by Catherine
detay wrote: 07.01.2020 09:18 What should be the value of A and B? micron, mm or degree?
These values are not proportionate to any physical quantity. They are only proportional to the source image number in the sequence. You seem to be looking for a way to measure depth from photos using Helicon Focus, but it's not possible (it may be possible in principle, but not with any help of our software).

Re: Calibrated depth map?

Posted: 11.06.2020 17:25
by gluggo
vaster04

On your microscope with stepmotor on focus knob if possible can you give a picture of the stepmoter controling your focus knob and or the model number and make of the stepmotor? I was just curious what that looked like. TYIA