Calibrated depth map?

Optical microscopes + digital photography
Post Reply
vaster04
Posts: 4
Joined: 14.10.2019 17:53

Calibrated depth map?

Post 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
User avatar
Catherine
Posts: 1156
Joined: 29.04.2019 22:38

Re: Calibrated depth map?

Post by Catherine »

Yes, it's possible. If А is a starting point, and B is the end point, the depth map step is (B-А)/255
vaster04
Posts: 4
Joined: 14.10.2019 17:53

Re: Calibrated depth map?

Post 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
User avatar
Catherine
Posts: 1156
Joined: 29.04.2019 22:38

Re: Calibrated depth map?

Post 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.
vaster04
Posts: 4
Joined: 14.10.2019 17:53

Re: Calibrated depth map?

Post 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
User avatar
Catherine
Posts: 1156
Joined: 29.04.2019 22:38

Re: Calibrated depth map?

Post 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.
detay
Posts: 3
Joined: 08.10.2019 09:16

Re: Calibrated depth map?

Post by detay »

Does the Maximum dept value always 255 or it is changing from the situation to situation?
User avatar
Catherine
Posts: 1156
Joined: 29.04.2019 22:38

Re: Calibrated depth map?

Post by Catherine »

No, it's always 255
detay
Posts: 3
Joined: 08.10.2019 09:16

Re: Calibrated depth map?

Post 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?
User avatar
Catherine
Posts: 1156
Joined: 29.04.2019 22:38

Re: Calibrated depth map?

Post 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).
gluggo
Posts: 5
Joined: 04.06.2020 20:35

Re: Calibrated depth map?

Post 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
Post Reply