Create a scale bar? Thoughts?

Hi
I was wondering if anyone has thought about the best way to create a scale bar for a photo, that is automatically the right size.
My photos have an exif field "Subject Distance" which, along with the sensor size and the lens length, could be used to create a scale bar that can be put into a photo.
I am uncertain whether it would be better to try to do this in Photoshop, or to build a frame in In Design. It would be really wonderful if I could figure out how to add the scale bar after I crop the image (since I have a lot of images already cropped), but that might be asking too much?
Any thoughts before I explore all the blind alleys?
FWIW, I am quite comfortable scripting in AppleScript, but have never tried the JavaScript abilities for Photoshop (a big learning curve, I would guess).
Thanks
Alan

I researched this for a client. The good news is if you have Photoshop Extended it is easy for a script to set the scale and create a scale bar.
The bad news is that although the idea that you can determine the subjects scale from the exif data may work in theory I could not use that info to determine the scale with any accuracy. If you are just working with one camera you may be able to come up with something using emprical data but I just don't think it is possible to create a general method that works for any camera.
Another issue I found is some camera makers don't give accurate info on sensor size. Or that the full sensor is not used to create the image. Also in my test with a limited number of cameras most did not record the same subject distance I expected from where I had the lens focused.
To me a scale bar implies accuracy so I dropped the project.

Similar Messages

  • How can I create a status bar at the bottom of a window ?

    I would like to create a status bar at the bottom of my main window similiar to "Internet explorer" has. I thought of using a tool bar but I can't see how to keep it positioned at the bottom of the window when the window is resizable. Any other ideas on how to do this the bar only needs to contain a small amout of text and maybe an icon or two.

    CVI doesn't have a status bar control on UI element like the one available in Visual Studio++. The best way to replicate this is most like through a string control that is resized and positioned to remain at the bottom of the window and colored to look appropriately. I have also seen the combination of a decoration and a text message used.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Creating a status bar?

    How could I create a status bar that looks like the one of Internet Explorer?
    I thought about deactivated JToggleButton with pressed state, but the shadow of it is too strong.
    Somehow I need to have the separators in the status bar to look like in Windows applications, for instance like used in Internet Explorer.

    It is not an exact match.
    The separators look slightly thicker and the shadows are softer in IE.
    However this should help.
            JPanel statusbar = new JPanel();
            statusbar.setLayout(new BoxLayout(statusbar,BoxLayout.X_AXIS));
            statusbar.setPreferredSize(new Dimension(100,30));
            JPanel pan1 = new JPanel();
            pan1.setBorder(BorderFactory.createBevelBorder(1));       
            pan1.setPreferredSize(new Dimension(100,30));
            statusbar.add(pan1);
            JPanel pan2 = new JPanel();
            pan2.setBorder(BorderFactory.createBevelBorder(1));       
            pan2.setPreferredSize(new Dimension(30,30));
            statusbar.add(pan2);
            JPanel pan3 = new JPanel();
            pan3.setBorder(BorderFactory.createBevelBorder(1));       
            pan3.setPreferredSize(new Dimension(30,30));
            statusbar.add(pan3);
            JPanel pan4 = new JPanel();
            pan4.setBorder(BorderFactory.createBevelBorder(1));           
            statusbar.add(pan4);
            getContentPane().add(statusbar, BorderLayout.SOUTH);There is another BorderFactory.createBevelBorder( ... ) method that will allow you to change the color of the shadows.
    If you want them thicker you'll probably have to use a custom border.
    Derek

  • How to create a progress bar showing status on timeout of TCP Read function

    Is there any way of creating a progress bar showing the status of a 'TCP Read timeout' time ... ?
    I'm sending a data request to an intranet server via TCP Write, and then using TCP Read with a 2 min. timeout to receive the requested data. During this time i want to show the actual progress of the timeout in a progress bar.
    Can this be done?
    And do i have to implement some kind of multitasking to make it happen?
    TIA

    Soulstorm wrote:
    > Is there any way of creating a progress bar showing the status of a
    > 'TCP Read timeout' time ... ?
    >
    > I'm sending a data request to an intranet server via TCP Write, and
    > then using TCP Read with a 2 min. timeout to receive the requested
    > data. During this time i want to show the actual progress of the
    > timeout in a progress bar.
    > Can this be done?
    > And do i have to implement some kind of multitasking to make it
    > happen?
    It can be done and you need to do some multitasking yes, but that is
    quite easy in LabVIEW. A separate loop or subVI with loop will be
    responsible for the progress bar. Set its scale to 0 and the number of
    seconds of your timeout. In parallel to the TCP Read let this loop or VI
    execute reading the time every few
    seconds and calculating the
    difference to its start time, passing this value to the progress bar
    slider. Have an extra boolean global which aborts the loop and set this
    boolean to FALSE before starting the loop/VI and TCP Read and setting it
    to TRUE on return of the TCP Read.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Creating A Scale Animation Cant Find Numeric In Transform In CS3

    Hi All
    I am on a course at a College and on my 411 page handout it wants me to create a Scale Animation in PhotoShop MX 2004 (I have PhotoShop CS3 and Windows XP OS) the annoying thing is that I cant not find Numeric In Transform (by going to edit) all I have is: Scale, Rotate, Skew, Distort, Perspective and Warp, is there anyway I could get an add-on or a Plug-In? if yes how do I do it?
    Many Thanks For Reading This And Maybe Replying To It.
    Kind Regards,
    Oliver

    Hi
    Thank you very much to both of you for replying very much appreciated!
    what is wrong with my colleges terminology Jhon Joslin? I would like to know for future reference please.
    I have had a look at the various Options on the Options Bar Ed Hannigan but I just can not find it. If anyone else has any suggestions or knows where Numeric is (which should be in Transform by going to edit, in PhotoShop MX 2004) please let me know.

  • Scale bar

    Ok, I retype my question?!
    I am using Photoshop CS6 for academic work and need to place a scale bar on images for a scientific article.
    In CS4 I used to go to "Analysis" ->"Set measurement scale" and then I could place a scalebar.
    I can't seem to figure out if my image is locked (which is shouldn't be). But the Analysis menu (now hidden under "image") has only "Ruler Tool" clickable. The remaining selections are not selectable.
    I need this working ASAP as I have to place scalebars on a great number of images.
    Off topic: Error report: Your webpage http://helpx.adobe.com/contact.html does not work in IE 11.

    Sorry, I didn't realise that what I thought was chat support was transferred to a forum post?
    Does this mean there are no experts who can tell me what is wrong with this expensive but apparently useless piece of software?
    I really need this bug fixed ASAP, and as I understand there is no chat support, I hope community users can help here.

  • Automatic Detection of Scale Bar/Insert New Scale Bar

    Two quick questions.  I have never scripted much, but I have an idea which would help my workflow professionally. 
    The first questions is whether there are any professional services which I might be able to contract in order to have a script developed? 
    The second question is in regards to whether my scripting idea would even be possible in Photoshop. 
    I do research using electron microscopes, and as such in every micrograph I collect there is a scale bar.  Unfortunately, the scale bars are not aesthetically pleasing, and so I bring them into Photoshop.  Typically I will rescale, cut, paste, etc to use the images to tell the story about the data.  One of the things I always do is draw a line trace over the scale bar on the image (typically with my own font and applied stroke) and then adjust it (whether I want to double the scale, etc) to make it look more professional.  On all of my micrographs there is a black information bar with white lettering and a white scale bar (see attached).  Is there any way to write a script that would automatically read the region where the scale bar is located and then draw a new layer with a line the same size (with the line properties desired) using a Fourier transform or some other mathematical algorithm?  If that is possible, the next step would be to read the scale bar size and do a similar function with inserted text.
    Thanks,
    Matt

    If the bar only varies in width, this might help to create a layer of the size of the bar:
    // 2011; use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    // set to pixels;
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    myDocument.selection.load(myDocument.channels[0], SelectionType.REPLACE);
    myDocument.selection.select([[0,960], [975,960], [975,992], [0,990]], SelectionType.INTERSECT, 0, false);
    myDocument.selection.makeWorkPath(1);
    var theBar = solidColorLayer(128,128,128);
    theBar.name = "scalebar";
    // reset;
    app.preferences.rulerUnits = originalRulerUnits;
    ////// function to create a solid color layer //////
    function solidColorLayer (theRed, theGreen, theBlue) {
    // =======================================================
    var idMk = charIDToTypeID( "Mk  " );
        var desc3 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref1 = new ActionReference();
            var idcontentLayer = stringIDToTypeID( "contentLayer" );
            ref1.putClass( idcontentLayer );
        desc3.putReference( idnull, ref1 );
        var idUsng = charIDToTypeID( "Usng" );
            var desc4 = new ActionDescriptor();
            var idType = charIDToTypeID( "Type" );
                var desc5 = new ActionDescriptor();
                var idClr = charIDToTypeID( "Clr " );
                    var desc6 = new ActionDescriptor();
                    var idRd = charIDToTypeID( "Rd  " );
                    desc6.putDouble( idRd, theRed );
                    var idGrn = charIDToTypeID( "Grn " );
                    desc6.putDouble( idGrn,theGreen );
                    var idBl = charIDToTypeID( "Bl  " );
                    desc6.putDouble( idBl, theBlue );
                var idRGBC = charIDToTypeID( "RGBC" );
                desc5.putObject( idClr, idRGBC, desc6 );
            var idsolidColorLayer = stringIDToTypeID( "solidColorLayer" );
            desc4.putObject( idType, idsolidColorLayer, desc5 );
        var idcontentLayer = stringIDToTypeID( "contentLayer" );
        desc3.putObject( idUsng, idcontentLayer, desc4 );
    executeAction( idMk, desc3, DialogModes.NO );
    return app.activeDocument.activeLayer

  • Set Maximum size for a subpanel created with splitter bars in LV8

    Does anyone know how to set the Maximum size for a subpanel created with asplitter bar? If I show one cluster in the subpanel and use the scroll bar to scroll, I can see more (blank) area than I want. I just want the user to be able to scroll a cluster within a subpanel while the cluster is larger than the view area of the subpanel. I don't want to let the user scroll outside the cluster.
    Ravi Beniwal

    I apologize for the mixup in terminology. Please read Pane wherever the word Subpanel was used.
    Please see the attached VI for a description of my problem.
    I would really appreciate any help with this.
    Ravi Beniwal
    Attachments:
    Pane Scrolling Problem.vi ‏10 KB

  • Website help: Creating a side bar then the main part of the webpage??

    Hi guys, im currently making a website in dreamweaver but ive coe into some problems and theyve got me stumped...
    basically, i have been using dreamweaver and ive managed to create a side bar for my website with separate div tages etc and now i want to create the main body of the page, eg the menu and the images but i cant get it do do what i want it to do...
    when i insert the div tag for the main body part of my page it is placed above the side bar when i want it to the side of it, inline with it.... /: its fustrting cust ive been able to style all of the side bar and ive wanted to complete the rest of the site but currently im unable to...

    OK, here is how you need to look at your page:
    The outermost defined area is the body. Generally, to set up a website, you create basic "applies to all" stuff in the body definitions in your style sheet:
    For example:
    body {
              font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
              color: #000;
              background-color: #FFFFFF;
              margin: 20px 0;
              padding: 0px;
    That's going to create normal paragraph text in the website as Lucidia Sans (or Lucidia Grande if the client doesn't have that defaulting to sans-serif if that is not available), text color is black, background is white, top margin is 20 pixels, clear left and right margins and clear all padding.
    Now, you need to enclose the "website" into something that encases everything and I usually call that an outer wrapper.
    .outer-Wrapper {
              width: 80%;
              max-width: 1260px;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more readable. IE6 does not respect this declaration. */
              min-width: 780px;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the side columns. IE6 does not respect this declaration. */
              background: #FFF;
              margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout. It is not needed if you set the .container's width to 100%. */
    Explanations in comments.
    Now, you set up the rest of your page:
    .header {
    #nav {
              margin-left: 20%;
    /* ~~ These are the columns for the layout. ~~
    1) Padding is only placed on the top and/or bottom of the divs. The elements within these divs have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a div set to float right). Many times, padding can be used instead. For divs where this rule must be broken, you should add a "display:inline" declaration to the div's rule to tame a bug where some versions of Internet Explorer double the margin.
    3) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned class names instead of IDs. For example, two sidebar divs could be stacked if necessary. These can very easily be changed to IDs if that's your preference, as long as you'll only be using them once per document.
    4) If you prefer your nav on the right instead of the left, simply float these columns the opposite direction (all right instead of all left) and they'll render in reverse order. There's no need to move the divs around in the HTML source.
    .sidebar {
              float: left;
              width: 20%;
              background-color: #cccccc;
              padding-bottom: 10px;
              color: #FFF;
    .content {
              padding: 10px 0;
              width: 80%;
              float: left;
              color: #000;
    Lastly, you want your footer to be below both columns, so you define that:
    .footer {
              padding: 10px 0;
              position: relative;/* this gives IE6 hasLayout to properly clear */
              clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
              background-color: #eeeeee; /*This makes it gray so that it is separated from the rest of the page, but isn't too dark for black text */
    Now, let's go to the html:
    Define your page. Dreamweaver will allow you to define a page as XHTML 1.0 transitional or strict or XHTML 1.1, HTML 4.01 transitional or strict or HTML5. Older versions of Dreamweaver have no HTML5 and may have older versons of HTML, but I either use XHTML 1.0 transitional or HTML5. There are good reasons for this.
    Dreamweaver will set up the site definitions depending on what you choose above the <head> area.
    Within the <head> area, you define the character set, give a title (make it unique for each page in your website) and point to your style sheet. You can use Dreamweaver's "Attach stylesheet." Any calls to JavaScript go here as well. If you have a separate style sheet for a drop-down menu structure or any other navigation, it will go there as well. Remember to close the <head> tag.
    Now, we define the body and go into the page:
    <body>
    <div class="outer-Wrapper">
    <div  ="header"> Header Goes Here</div>
    <div id="nav">Navigation placed here</div>
    <div class="sidebar">Your sidebar will go here</div>
    <div class="content">Your main content goes here and it will live to the right of your sidebar on the left</div>
    <div class="footer">I generally put the copyright information here and sometimes additional navigation in the footer</div>
    <div> <!-- Ends the outer-Wrapper -->
    </body>
    </html>
    This will absolutely work.

  • How to create a vertical bar chart from a table? (PHP, HTML and CSS)

    Hi everyone,
    I have created a table and wish to proceed to do it even better in terms of analysis pattern. I want
    to create a vertical bar chart from the created table but I dunno how to start it.
    Here is the code for the table:
    <?php
    $gpa11=$_REQUEST['gpa11'];
    $gpa12=$_REQUEST['gpa12'];
    $gpa21=$_REQUEST['gpa21'];
    $gpa22=$_REQUEST['gpa22'];
    $gpa31=$_REQUEST['gpa31'];
    $gpa32=$_REQUEST['gpa32'];
    $gpa41=$_REQUEST['gpa41'];
    $gpa42=$_REQUEST['gpa42'];
    $gpa51=$_REQUEST['gpa51'];
    $gpa52=$_REQUEST['gpa52'];
    ?>
    <!doctype html>
    <html lang="en">
       <head>
          <meta charset="utf-8">
          <meta name="viewport" content="width=1024">
          <title>Feng Mentor Mentee</title>
       </head>
       <body>
          <div id="wrapper">
             <div class="chart">
                <h3>GPA Performance Graph</h3>
                <table id="data-table" border="1" cellpadding="10" cellspacing="0"
                summary="The performance of students throughout the years in university">
                   <thead>
                      <tr>
                         <td> </td>
                         <th scope="col">Year 1</th>
                         <th scope="col">Year 2</th>
                         <th scope="col">Year 3</th>
                         <th scope="col">Year 4</th>
                         <th scope="col">Year 5</th>
                      </tr>
                   </thead>
                   <tbody>
                      <tr>
                         <th scope="row">Sem 1</th>
                         <td><?php echo $gpa11;?></td>
                         <td><?php echo $gpa21;?></td>
                         <td><?php echo $gpa31;?></td>
                         <td><?php echo $gpa41;?></td>
                         <td><?php echo $gpa51;?></td>
                      </tr>
                      <tr>
                         <th scope="row">Sem 2</th>
                         <td><?php echo $gpa12;?></td>
                         <td><?php echo $gpa22;?></td>
                         <td><?php echo $gpa32;?></td>
                         <td><?php echo $gpa42;?></td>
                         <td><?php echo $gpa52;?></td>
                      </tr>
                   </tbody>
                </table>
             </div>
          </div>
       </body>
    </html>
    Here's the look:
                                                              GPA Performance Graph                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
    Year 1
    Year 2
    Year 3
    Year 4
    Year 5
    Sem 1
    Sem 2
    Please help me on this because this is my 1st project on php.

    Hi
    Are you using BI query? If yes then follow the steps -
    1. Take Sales org in rows of BI query. & take invoice type & Key figure in Columns.
    2. In VC use this query & drag chart from the output of this query.
    3. Right click on chart & go to 'Configure Element'. There select Chart Type as 'Bar chart'
    4. Below that you will get default option as clustered, there you select 'Stacked'
    5. Create Data series as per your requirement.
    6. Arrange proper layout of the model & then deploy.
    You will get required output in stacked format.
    Regards
    Sandeep

  • Create a Status Bar

    How can I create a Status Bar?
    Thanks.

    I'm pretty sure this has been covered a couple of 1000 times... let me see.... ah yes, Dr. Google is your friend:
    http://www.google.com/search?lr=&ie=UTF-8&oe=UTF-8&q=java%20swing%20status%20bar

  • How to create 2 scroll bar in 2 canvas

    Hello All,
    I will appreciate if somebody knows how to create 2 scroll bars in 2 Content canvases and all items text item belongs to one data block.
    In data block property it shows only one scroll bar. Their is no property of scroll bar in canvas.
    Regards,
    Atif

    Go to the layout editor.
    Take the Stacked canvas tool in the toolbox
    draw a stacked canvas on the content canvas (the stacked can could be larger than the content one)
    edit you item properties to display on the content canvas
    adjust the window to the same width and weight properties than the content canvas.
    The simplest way it to use the datablock wizard to create the data block, then indicate to show items not on the content canvas but the stacked canvas.
    Francois

  • How to create new scale basis for shipment costs without modification?

    Hi,
    at the moment I am trying to create a new scale basis for shipment costs.
    It is not a problem to create a new scale basis in table view V_TVFRFQ. The creation of an Append structure in the communication structure KOMK is easy, too.
    The problem is the following:
    When creating a scale for a scale basis with transaction VS01, the system picks some screens out of function group V57S. For my new scale basis there is of course no screen in this standard function group.
    So my question:
    How to create/generate a screen to create scales for my new scale basis without a modification of function group V57S?
    To me it makes no sense that SAP offers a possibility to create customer owned scale bases but then gives the customer no possibility to create an input screen for that scale basis without modification. Therefore I think it should be possible to generate such a screen in some way.
    If you have some idea, let me know.
    Thanks!
    Christian

    Hi Christian,
    We are currently facing exactly the same problem you described in your message in January 2009.  I see that you have marked this as "answered", and was wondering if you would mind explaining how you overcame this issue?
    Any assistance would be hugely appreciated.
    Many thanks,
    Kaushik

  • Can a drum pattern created in Ultrabeat be limited to playing only once? Basically creating a single bar.

    Can a drum pattern created in Ultrabeat be limited to playing only once? Basically creating a single bar.

    Found it. The key is shutting down the sequencer in Ultrabeat once you have dragged the pattern to the arrange window.

  • How to create simple scroll-bar table dashboard in Excel 2003?

    How to create simple scroll-bar table dashboard in Excel 2003?
    Pl mention from step 1 as I am new to this 

    Hi UltraDev,
    We discuss SQL Server PowerPivot for SharePoint related issue in this forum. In your case, I suggest you post the question in the following forum for better support:
    Excel IT Pro Discussion:
    http://social.technet.microsoft.com/Forums/office/en-US/home?forum=excel
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for