473,408 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Get dimension of pixel in mm

2
Hello.
I have an image of size 640x480 pixels.
It's possible to obtain the dimension in mm of one pixel from that image given only that size?I do not have the size of the image in mm,however.
Thanks for helping.
Apr 17 '12 #1
5 3783
weaknessforcats
9,208 Expert Mod 8TB
Your question has no meaning.

You already said your image is 640x480 pixels.

Each pixel will have a size based on the resolution of the display.

The more pixels in your display, the smaller your picture.
Apr 17 '12 #2
ldima
2
Thanks for answering weaknessforcats.
I try to explain better:I have loaded an image taken from a camera,then i need pixel dimension in mm of that image, for example obtain that each pixel is wide 0.2 mm.
This is not possible?
Apr 17 '12 #3
Rabbit
12,516 Expert Mod 8TB
It depends on the display. Every display has a different size for each pixel. Imagine drawing a 10 by 10 grid on a 10 inch monitor. What's the size of a single square? Now draw a 10 by 10 grid on a 20 inch monitor, what's the size of a single square? It depends on the size of the display and its native resolution.
Apr 17 '12 #4
weaknessforcats
9,208 Expert Mod 8TB
Not it is not possible.

Suppose your computer screen was 640 x 480. Your picture would fill the screen.

Change the resolution to 1280 x 960 and the same picture would occupy only 1/4 of the screen.
Apr 17 '12 #5
Stewart Ross
2,545 Expert Mod 2GB
If you are really meaning that you have data stored by a digital camera which recorded additional information about the image, including its nominal size, you would need to read the EXIF (Exchangeable Image File Format) data for that image. This is not a trivial task for JPG files, for example.

See the following Wikipedia articles for guidance:
Exchangeable image file format
JPEG

Otherwise, as my colleagues have already said, it s not possible to determine what the nominal 'size' of a pixel is without knowing anything at all about the size of the sensor in the camera and the focal length of the lens involved.

-Stewart
Apr 19 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Steve Jorgensen | last post by:
Hi all, I'm working on the schema for a database that must represent data about stock & bond funds over time. My connundrum is that, for any of several dimension fields, including the fund name...
8
by: R0bert Neville | last post by:
I am having major issues in IE. This web development exercise involves learning why certain hacks work and others don't. My web page renders ok in Firefox. The main problem in my web page...
2
by: Nathan Sokalski | last post by:
I have a multidimensional array declared as the following: Dim guesses(14, 5) As Integer I want to assign all values in a specific dimension to another array declared as follows:
5
by: Jackson | last post by:
I have something that is stumping me. I am trying to initialize a 3 dimensional string array with the code below, but it wont compile. Can anyone explain what Im doing wrong?????????????? Im...
4
by: Bruce | last post by:
I have an asp.net page that is dynamically building a table and populating cells with images (typically jpeg) and with associated metadata. How can the asp.net code efficiently determine the...
30
by: Chaos | last post by:
As my first attempt to loop through every pixel of an image, I used for thisY in range(0, thisHeight): for thisX in range(0, thisWidth): #Actions here for Pixel thisX, thisY But it takes...
8
by: ofiras | last post by:
Hi, I made a "Paint" program, but I couldn't find a method to paint 1 pixel using graphic state ("Graphics g = Graphics.FromHwnd(this.Handle);") How can I paint 1 pixel? I guess I can make a...
1
by: ofiras | last post by:
In bitmap, how can I find the nearest pixel (pixel 1) to a specific pixel (pixel 2) that has different color from pixel 2? Or how can I find a pixel in a specific distance from pixel 2 (like a...
9
by: raylopez99 | last post by:
After refering to the below thread, I take it for C# Forms 2.0, there a way to draw a 1 pixel by 1 pixel rectangle, which I was able to do just now successfully. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.