Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Pixels to MM2

  • 28-04-2015 9:25am
    #1
    Registered Users, Registered Users 2 Posts: 12


    Hi there

    I use a vision application to identify different objects, and their size is measured in Pixels.
    I have a number of circular finds that I need to convert from pixels to MM squared.
    They are 9, 40, 55, 71, 107 and 191 pixels (area).
    Now, it also works out that in the future, I am going to have to find objects with area's from 3 pixels to 400 pixels. Is there a way that I can convert these figures from Pixels into MM squared?
    I have measured, and a straight line distance of about 45mm is 200 pixels.
    I know its a long shot, but consider it a challenge!!
    Thanks in advance
    Jon


Comments

  • Registered Users, Registered Users 2 Posts: 1,456 ✭✭✭FSL


    If your application can return the number of pixels in the image as a whole and you know the actual area of the image, not the area the image takes up on the screen, then you know the area a single pixel represents.


  • Registered Users, Registered Users 2 Posts: 6,285 ✭✭✭bonzodog2


    From your 45mm line, a 45x45 square would be 40000 pixels, so 1mm^2 is 222.222 pixels. 400 pixels would thus be 1.8mm^2. Etc.


  • Registered Users, Registered Users 2 Posts: 86,729 ✭✭✭✭Overheal


    Be careful with this application, because a pixel is not a standardized unit of measurement. a Pixel on an LCD monitor and a pixel on an iPhone are both different in size and shape. Even between 2 different brands or model of monitor they can differ. This is due to pixel density, measured in ppi, and even that is a bit of a wash for you application. but it would be something.

    If you can control what display is used for an application (for instance, this is for a finished product like a touchscreen coffee table or something) then its viable; if its software that will freely run on independent hardware, your feature will not be calibrated correctly and may fail.


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,572 Mod ✭✭✭✭Capt'n Midnight


    Like overheal said , pixels aren't standard. My phone has roughly the same number of pixels as my TV.

    Also pixels aren't necessarily square. Measure both ways.

    Some devices report their dpi , but even that won't take into account rectangular pixels


  • Registered Users, Registered Users 2 Posts: 86,729 ✭✭✭✭Overheal




  • Advertisement
Advertisement