I'm trying to calculate the size of an object in pixels in an image, when I have these information:
x * y = the size of the real object in meters
q = the quality of the image in dpi
d = the distance between object and the camera in meters
Do I have to know the size of image as well? If so, how can I calculate the size of the object in pixels?