1. wahoooob's Avatar
    C'mon - there's gotta be some programmers out there that are also photographers (or vice versa)!
    05-21-09 08:20 AM
  2. beckywc's Avatar
    This would be sweet.
    05-21-09 09:04 AM
  3. slyjosh's Avatar
    I would like to see a light meter using the camera, but a dof calc would be cool too.

    Posted from my CrackBerry at wapforums.crackberry.com
    05-21-09 12:22 PM
  4. Giant Cashew's Avatar
    Use the DOF preview button.
    05-21-09 12:50 PM
  5. swong13's Avatar
    Use the DOF preview button.
    The DOF preview button does not calculate hyperfocal distance. Also does not work well in low light conditions. Kinda hard to see what's sharp with the aperture closed down and your viewfinder is dark. I was also never very good at using the preview button even when I had a lot of light.

    I had made a request in the past for a DoF calculator but still no luck.

    The website www.dofmaster includes calculators for the Palm OS (I used to have it on my Palm T2. Worked great!), iPhone, and an online calculator. They also have the charts. I really miss having it on my Palm and really wish it was available on my Storm. I have written to DoFMaster to request a Blackberry version but have not gotten a response.

    The DoF calculators at DoFMaster are free but I would be willing to pay for one that worked as well as their Palm version did.

    -Steven
    Last edited by swong13; 05-21-09 at 06:27 PM.
    05-21-09 06:21 PM
  6. Chaoss's Avatar
    noob amateur photographer and a programmer here

    give this a try ht tp://widgety.biz/DOFcalc/DOFcalc.jad

    (5 more posts and I can post a link)
    05-28-09 04:17 PM
  7. swong13's Avatar
    noob amateur photographer and a programmer here

    give this a try ht tp://widgety.biz/DOFcalc/DOFcalc.jad

    (5 more posts and I can post a link)
    Chaoss-

    Thanks. That works! I am able to calculate Hyperfocal distance by typing in f-stop, camera type, and focal length.

    I am trying to figure out the usage of the chart at the bottom. It looks like it provides alternative f stops and the resulting depth of field. I don't understand what looks to be a second set of "far" distances.

    Thanks for the effort that you put into this!

    -Steven
    Last edited by swong13; 05-29-09 at 12:16 AM.
    05-29-09 12:07 AM
  8. jixxer's Avatar
    Cheers for this )
    05-29-09 03:48 AM
  9. keaton's Avatar
    I used to program in visual basic when I was like nine and now am a photographer... Although I don't think my limited vb knowledge will help here

    I'm going to download what chaoss posted and see how it is!

    Posted from my CrackBerry at wapforums.crackberry.com
    05-29-09 05:10 AM
  10. keaton's Avatar
    Seems to work well, assuming the data was transferred correctly! Nice job! Here's a clickable link to make it easier for anyone on the mobile forums. http://widgety.biz/DOFcalc/DOFcalc.jad

    Posted from my CrackBerry at wapforums.crackberry.com
    05-29-09 05:17 AM
  11. Chaoss's Avatar
    Chaoss-

    Thanks. That works! I am able to calculate Hyperfocal distance by typing in f-stop, camera type, and focal length.

    I am trying to figure out the usage of the chart at the bottom. It looks like it provides alternative f stops and the resulting depth of field. I don't understand what looks to be a second set of "far" distances.

    Thanks for the effort that you put into this!

    -Steven
    yes, the table provides alternate f stops with rows for near,far,dof, and hyperfocal. I just threw this in to fill space on the screen, let me know if you want something different or other changes
    05-29-09 12:43 PM
  12. swong13's Avatar
    yes, the table provides alternate f stops with rows for near,far,dof, and hyperfocal. I just threw this in to fill space on the screen, let me know if you want something different or other changes
    The application, as it is now, does everything that I need it to do.

    Thanks, again!

    -Steven
    05-29-09 03:43 PM
  13. richardseeley's Avatar
    Are there installation instructions for the DOF calculator onto my Storm 9530?
    05-31-09 04:44 PM
  14. Chaoss's Avatar
    from your phone, just download the app using the link above. The app will be saved in the downloads folder.

    I did make one additional change, the focal length was not saving when exiting the app...it now saves properly
    05-31-09 09:18 PM
  15. richardseeley's Avatar
    Yes, download successful. The calculator works great. I like the alt f-stops. I will be using this in the field. I am a photographer, mostly wildlife:
    richardseeleyphotography.com,
    I could have used this calculator on sat when I was photoshooting osprey in Maine.
    thank you very much.
    Rich Seeley
    06-01-09 07:05 AM
  16. richardseeley's Avatar
    Chaoss
    do you have any other cool apps for BB and photographers?
    Rich Seeley
    06-01-09 07:08 AM
  17. Chaoss's Avatar
    Chaoss
    do you have any other cool apps for BB and photographers?
    Rich Seeley
    no, but what else are you looking for? I'd be willing to work on any app that's useful
    06-01-09 10:04 AM
  18. PDR447's Avatar
    I'm looking for a DoF app for my new tour and unfortunately this doesn't seem to be working. I can edit all the details(focal length, distance, format, etc.) but the only way I can get it to actually calculate the DoF is to exit out and re-open the app.

    any chance of getting this updated for the tour? also maybe adding some cinema formats?

    thanks!
    07-22-09 12:04 AM
  19. wolfpeterson's Avatar
    Is there an alternative to the native camera app?

    The auto white balance when using the flash is always wrong, but it's a pain going through the menus to go and change it before taking the photo...

    It would have been good if RIM had made shortcuts to those things (geotagging, WB, quality).
    08-01-09 05:33 PM
  20. Alanf#CB's Avatar
    DOF CALCULATOR
    I have tried to download the DOF calculator. I received a message stating the following

    Error starting DOFcalc:
    Class
    .net.rim.device.api.ui.Virtual Keyboard not found.

    Does anybody know what this actually means. Secondly is this software only available for the Storm.

    Thanks
    AlanF
    Last edited by Alanf; 11-09-09 at 05:10 AM. Reason: More details now provided
    11-08-09 12:33 PM
  21. BekNazar's Avatar
    12-10-09 08:46 AM
  22. Chaoss's Avatar
    here's the non touch screen version DOFcalc


    @PDR447
    the F-stop and Format/CoC values can be edited on both the touch & non-touch screen versions
    Last edited by Chaoss; 12-10-09 at 12:06 PM.
    12-10-09 12:01 PM
  23. bwcomputers's Avatar
    Great, was just about to ask about that non-touch version.
    Thanks for the work you have done.
    08-24-10 12:55 PM
  24. AkaChuck's Avatar
    You don't really need an application to do simple math calculations like a DOF calculator. A simple JavaScript file will work.
    To make it work on a Blackberry device, simply copy contents of the file below from <HTML> to </HTML> and save it to a file for example DOFCalc.html file and then copy it to the BB device (or any device) via USB cable.
    For example I copied it to backberry/documents/DOFCalc.html
    and then open the Blackberry browser and open the file by typing in the location of the file in the URL
    For example
    file:///SDCard/blackberry/documents/DOFCalc.html
    Blackberry is case sensitive and make sure JavaScript is enabled. Then Bookmark it so you can easily access it.
    The calculator will calculate in feet, however, by changing one line of code in the HTML file feet = true to feet = false it will calculate in meters. Let me know if you have any issues.
    <html>
    <title>Depth Of Field Calculator</title>
    <body>
    <script type="text/javascript" LANGUAGE="JavaScript">

    function doField(form) {
    feet = true; // change true to false if meters is desired
    if (feet){
    distance = (form.distance.value)*1000*0.3048; //convert feet to millimeters
    }else{
    distance = (form.distance.value)*1000; //convert meters to millimeters
    }
    CoC = (document.form.format.options[document.form.format.selectedIndex].value);
    aperture = (document.form.aperture.options[document.form.aperture.selectedIndex].value);
    focal = (document.form.focal.options[document.form.focal.selectedIndex].value);
    if (isNaN(distance)) {
    alert('Please enter a numerical value for subject distance.');
    document.form.distance.focus();
    document.form.distance.select();
    }
    else {
    hyperFocal = ((focal * focal) / (aperture * CoC)) + Math.round(focal);
    if (feet){
    form.hyperFocal.value = Math.round(hyperFocal / (1000*0.3048)) + " ft";
    form.hyperFocal2.value = Math.round(hyperFocal / (1000*0.3048)) + " ft";
    }else{
    form.hyperFocal.value = (Math.round(hyperFocal) / 1000) + " m";
    form.hyperFocal2.value = (Math.round(hyperFocal) / 1000) + " m";
    }
    dofNear = ((hyperFocal - focal) * distance) / (hyperFocal + (distance - (2 * focal)));
    if (feet){
    form.dofNear.value = Math.round(dofNear / (1000*0.3048)) + " ft";
    }else{
    form.dofNear.value = Math.round(dofNear) / 1000 + " m";
    }
    dofNear2 = (hyperFocal * hyperFocal) / (hyperFocal + (hyperFocal - focal));

    if (feet){
    form.dofNear2.value = Math.round(dofNear2 / (1000*0.3048)) + " ft";
    }else{
    form.dofNear2.value = (Math.round(dofNear2) / 1000) + " m";
    }
    dofFar = ((hyperFocal - focal) * distance) / (hyperFocal - distance);
    if (dofFar < 0) {
    form.dofFar.value = "Infinity.";
    }
    else {
    if (feet){
    form.dofFar.value = Math.round(dofFar/(1000*0.3048)) +" ft";
    }else{
    form.dofFar.value = Math.round(dofFar)/1000 +" m";
    }
    }
    dofTotal = Math.round(dofFar - dofNear);
    if (dofTotal < 0) {
    form.dofTotal.value = "Infinite.";
    }
    else {
    if (dofTotal >= 0 && dofTotal < 0.001) {
    form.dofTotal.value = ">1 mm ";
    }
    else {

    if (feet){
    form.dofTotal.value = Math.round(dofTotal / (1000*0.3048)) + " ft";
    }else{
    form.dofTotal.value = dofTotal / 1000 + " m";
    }
    }
    }
    }
    }
    </script>


    <center>
    <form action="" method="post" name="form">
    <table border="1" cellpadding="1" cellspacing="0" width="400">
    <tr>
    <td align="center" colspan="2">
    Depth of Field Calculator
    </td>
    </tr>
    <tr>
    <td align="left">
    Negative Format
    </td>
    <td align="left">
    <select name="format">
    <option value=0.03 style="font-size: 16px;font-weight: bold">35 mm
    <option value=0.025 style="font-size: 16px;font-weight: bold">APS
    <option value=0.05 style="font-size: 16px;font-weight: bold">6x45 cm
    <option value=0.06 style="font-size: 16px;font-weight: bold">6x6 cm
    <option value=0.065 style="font-size: 16px;font-weight: bold">6x7 cm
    <option value=0.15 style="font-size: 16px;font-weight: bold">5x4 inch
    <option value=0.3 style="font-size: 16px;font-weight: bold">10x8 inch
    </select>
    </td>
    </tr>
    <tr>
    <td align="left">
    Lens focal length
    </td>
    <td align="left">
    <select name="focal">
    <option value=24 style="font-size: 16px;font-weight: bold">24 mm
    <option value=26 style="font-size: 16px;font-weight: bold">26 mm
    <option value=28 style="font-size: 16px;font-weight: bold">28 mm
    <option value=30 style="font-size: 16px;font-weight: bold">30 mm
    <option value=35 style="font-size: 16px;font-weight: bold">35 mm
    <option value=40 style="font-size: 16px;font-weight: bold">40 mm
    <option value=45 style="font-size: 16px;font-weight: bold">45 mm
    <option value=50 style="font-size: 16px;font-weight: bold">50 mm
    <option value=55 style="font-size: 16px;font-weight: bold">55 mm
    <option value=60 style="font-size: 16px;font-weight: bold">60 mm
    <option value=70 style="font-size: 16px;font-weight: bold">70 mm
    <option value=80 style="font-size: 16px;font-weight: bold">80 mm
    <option value=100 style="font-size: 16px;font-weight: bold">100 mm
    <option value=135 style="font-size: 16px;font-weight: bold">135 mm
    <option value=150 style="font-size: 16px;font-weight: bold">150 mm
    <option value=200 style="font-size: 16px;font-weight: bold">200 mm
    </select>
    </td>
    </tr>
    <tr>
    <td align="left">
    Selected aperture
    </td>
    <td align="left">
    <select name="aperture">
    <option value=2.8 style="font-size: 16px;font-weight: bold">F 2.8
    <option value=3.2 style="font-size: 16px;font-weight: bold">F 3.2
    <option value=4 style="font-size: 16px;font-weight: bold">F 4
    <option value=5.6 style="font-size: 16px;font-weight: bold">F 5.6
    <option value=8 style="font-size: 16px;font-weight: bold">F 8
    <option value=11 style="font-size: 16px;font-weight: bold">F 11
    <option value=14 style="font-size: 16px;font-weight: bold">F 14
    <option value=16 style="font-size: 16px;font-weight: bold">F 16
    <option value=18 style="font-size: 16px;font-weight: bold">F 18
    <option value=20 style="font-size: 16px;font-weight: bold">F 20
    <option value=22 style="font-size: 16px;font-weight: bold">F 22
    <option value=32 style="font-size: 16px;font-weight: bold">F 32
    <option value=45 style="font-size: 16px;font-weight: bold">F 45
    </select>
    </td>
    </tr>
    <tr>
    <td align="left">
    Subject distance
    </td>
    <td align="left">
    <input type="text" name="distance" value="" size="8">
    <input type="button" value="Calculate" onclick="doField(this.form)">
    </td>
    </tr>
    <tr>
    <td colspan="2" align="left">
    <center>Focus at <input name="hyperFocal2" type="text" value="" size=5 style="font-size: 16px;font-weight: bold"> for focus from <input name="dofNear2" type="text" value="" size=5 style="font-size: 16px;font-weight: bold"> to infinity.</center>
    <br>
    <input name="hyperFocal" type="text" value="" size=12 style="font-size: 16px;font-weight: bold"> Hyperfocal distance for infinity.
    <BR>
    <input name="dofNear" type="text" value="" size=12 style="font-size: 16px;font-weight: bold"> Near limit of acceptable sharpness.
    <BR>
    <input name="dofFar" type="text" value="" size=12 style="font-size: 16px;font-weight: bold"> Far limit of acceptable sharpness.
    <BR>
    <input name="dofTotal" type="text" value="" size=12 style="font-size: 16px;font-weight: bold"> Total depth of field.
    <BR>
    </td></tr>
    </table>
    </form>
    </center>
    </body>
    </html>
    Last edited by AkaChuck; 05-17-11 at 06:13 PM. Reason: Fixed errors in code
    05-14-11 04:08 PM
  25. PavementPilot's Avatar
    I have this one, and btw thanks for the OS6 update.
    AkaChuck likes this.
    05-17-11 10:21 AM
29 12
LINK TO POST COPIED TO CLIPBOARD