New answers tagged smartphone
you can use this equation: Distance of an object (in meters) = (focal length (mm) * object height (m) * image height (px)) / (object height in image (px) * sensor height (mm))
Most lenses don't measure the position of the focus, just which direction they need to move in order to reach focus. Therefore they can't measure the exact position of the focus. If the data isn't already in the EXIF information of the photo, then it likely is not able to be captured by the camera.
If it is in the file, exiftool will tell you. If not, there is no easy way to tell the distance as cameras basically record angle information (in the picture - each pixel looks at a specific direction from an idealized center). If you have two or more photos from different viewpoints, then you could use PanoTools or similar tools to create a 3D mesh, and if ...
You can try layer via cut instead of copy If you have an image which has a large distance range in it (e.g. close distance shots instead of panoramas) you can imitate the distance function by first duplicating the background and blurring it. After blurring the duplicate, you should add layer mask and change the layer mask to a gradient in the direction of ...
First make a duplicate layer and place it above the original layer. Then select the portion you want to blur [On the duplicate layer]. Right click the selected portion and give a 'feather' value of between 15 - 25. Go to Filters > blur > lens blur. Play with the values until satisfied.
Top 50 recent answers are included