Mesh subdivide amount by texture?

Hi, I want to use texture as detail of subdivision. Is it possible? I insert a picture if you don’t understand what I mean. This would be very useful because it can control the amount of subdivide surface on specific part of the mesh very precisely. Thank you.

I wish there is a way to achieve that, Its must have for 3D printing to do such thing:

I think you could do that manually using dynatopo!
but not automatically

happy bl

you can use simple images like this as brush textures to create masks you can then simply sculpt the shape through the mask

I’m using the displacement modifier so I need it 100% automatic.
the texture is the Z buffer that divided to each model, after that normalized and joined together again.
Layer1: Setup
Layer2: Model for 3D Printing
Layer20: Camera etc.