The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
(35S) Photo resolution from MPixels and aspect ratio
06-18-2021, 08:04 PM (This post was last modified: 06-18-2021 08:39 PM by Gene.)
Post: #1
(35S) Photo resolution from MPixels and aspect ratio
For those of us who engaged in photography, we sometimes want to find the horizontal and vertical resolution of a sensor from the Megapixels (P) and aspect ratio (R). The following program uses only the stack (Y=Megapixels, X=Ratio) and the answer returned to X=Horizontal res. and Y=Vertical res.
The program is based on the formulas:HRes=SQRT(P*R), YRES=SQRT(P/R).

Code:
P001    LBL P
P002    ENTER
P003    ENTER
P004    REGT
P005    *
P006    SQRT
P007    RDN
P008    /
P009    SQRT
P010    ENTER
P011    REGT
P012    X<>Y
P013    RTN
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(35S) Photo resolution from MPixels and aspect ratio - mchris - 06-18-2021 08:04 PM



User(s) browsing this thread: 1 Guest(s)