Can I translate a layer in fractions of a pixel?

I'm using a script to iron out slight variations of camera position in a sequence of time-lapse images (the camera movement is caused by daily expansion and contraction of the timber wall that the DSLR is bolted onto).  I've motion-tracked the sequence in another program and produced a file of the translations to be applied to each image, expressed as a number of pixels in X and Y, in floating point numbers.
The script reads the file into an array, reads in each image, applies the translation (and a number of other transformations such as cropping and scaling) and writes the image out again.
The script works fine, except that Photoshop rounds the translation to the nearest whole pixel before applying it, which is simply not accurate enough to give a stable sequence. I've tested this in a separate script using a test image, and hard-wiring the translation values directly into the function call, and confirmed that it only seems possible to move a raster layer in Photoshop in whole pixels, regardless of whether snap-to-pixel is disabled, and regardless of the zoom level.
The workaround is obviously to scale the image up each time - say 5 or 10 times - apply a scaled translation - and then scale it down again - but I thought I'd see if I was being stupid and missing something trivial first!
P.S I've tried Auto-align, but with limited success - with changing shadows and sunlight, and moving branches etc, it often gets confused.

Just in case anyone else with a similar problem stumbles on this thread, here's what transpired:
After deciding on the scale-up/scale-down method to get 0.2 pixel accuracy on translation, I needed to rotate the images by small amounts to line everything up. That's when I found that the 'rotate' function in Photoshop has a similar problem - it only seems to work to one decimal place (for a layer) or two (for the whole image).  On a 3000-pixel-wide image the rounding errors produce a jitter in the animated sequence.  Of course with rotation, upscaling and downscaling don't help - an angle is an angle whatever size the image is. So, back to the drawing board....
I finally solved the issue by avoiding Photoshop altogether for this particular exercise.  I wrote my own program (in VB.NET) to process the images - the .NET environment provides matrix functions to shift images by amounts down to .0000001 of a pixel (or whatever the smallest 32-bit floating point number is!) and to rotate and scale with the same accuracy. There's no need to upscale & downscale, so the program works fast - less than a second per frame to load, shift, rotate, crop, resize, rotate 180,  and save.  The results are indistinguishable in quality from those produced by the Photoshop script, and the time-lapse sequence is now rock-steady.  Hooray!

Similar Messages

  • I build databases with appleworks over 10 years on my ibook, and continue to add to them. Now I have a macbook pro. How can I translate the databases to a compatible program?

    Over 10 years I have built several databases with Appleworks. Now I have a macbook pro. How can I translate these databases to a 10.6.8 program?

    Thanks Joe, but that won't work. I've finally found a site that answers the question: http://www.wilmut.webspace.virginmedia.com/notes/aw/page1.html
    I can only say that by Apple I have been royally screwed. I'll never buy another mac -- everything I do would simply disappear into cyberspace.

  • Photosho CS Problem - Can't drag a layer set from one document to another one

    I have two documents open
    On the source document, i want to drag a layer set from this document to a new one, but its not letting me
    What would cause this.
    My structure for the source document is
    >Set 1 Layer Set
         >layer
         > Adjustment Layer
         >background
    Background
    Structure of the target document
    >Named Layer Set
         > Where I want to insert the Layer Set from source document
         >layer
         > Adjustment Layer
         >background
    Background

    No error message is given. I just can't drag it into the spot I want to drag the layer set to (its not an individual layer, its a layer set)
    Basically, this is all I can do (have to do a correction on how the layers and layer sets work, missing one level from the original post):
    I've attached images as well to illustrate
    On my target document, I want to have the layer set go where the red text is:
    >Content Layer Set
         >Named Layer Set
              > Where I want to insert the Layer Set from source document (Set 1)
              >layer
              > Adjustment Layer
              >background
    Background
    right now, I can only drag the layer set to this position:
    >Content Layer Set
          > This is where the Set 1 from the source document can go, I can't drag it into the layer set below
         >Named Layer Set
              >layer
              > Adjustment Layer
              >background
    Background
    First Image I attached shows the Set 1 Layer Set, above the layer set I want to drag it into
    Second Image I attached shows what happens when I try to drag the layer set into the named layer set; it comes up with the "no symbol"
    No Error message is given

  • How can i translate a pdf document in japanese language to english language

    how can i translate a pdf document in japanese language to english language

    Hi trueman9299,
    ExportPDF uses OCR (optical character recognition) to convert image (scanned text) to editable/selectable text, but it doesn't translate from one language to another.
    Best,
    Sara

  • How can I check the field char can be translate into num type?

    Hi
    when I import Excel file into sap . I create one table to save the column and there are one column who's tpye is num . as we all know ,all the fields from excel are char type, the sap system will
    automatic translate char to num . but if the field can not translate char to num. then the program
    will be crush down
    such as : qty type char : 500 in excel then in tab qty type num :500 ok
    qty type char : 50A in excel then crash
    Is there any function that can deal with this matter?

    You may [CATCH|http://help.sap.com/abapdocu/en/ABAPCATCH_SYSTEM-EXCEPT_SHORTREF.htm] the error.
    CATCH SYSTEM-EXCEPTIONS convt_no_number = 1
                            conversion_errors = 2.
      MOVE char TO num.
    ENDCATCH.
    IF sy-subrc EQ 0.
      " converted
    ELSEIF sy-subrc EQ 1.
      " not numeric
    ELSEIF sy-subrc EQ 2.
      " not converted, other error
    ENDIF.
    Regards

  • Match edges error message -  can't find current layer

    Hello everybody,
    If I use filter --> "match edges" an error message appears: can't find current layer.
    It is no different if  it is a smartobject or a rasterized layer.
    Are there any suggestions to fix this problem?
    What layer-order is exactly to be used?
    Is there anything I could try? Btw: the filter "interpolate" seems to work right.
    Thank you!

    Hi, Dave & Dave -
    Wow, that took longer than I thought. I have been back for a couple of hours, and spent that time running the uninstall program, and then going to users/library/VirtualBox and deleting that folder, and its contents. Next I downloaded a fresh copy of VirtualBox from the Sun website, installed it on my computer, then ran the VirtualBox set up (setup the settings) and then clicked on the start icon. After the splash screen, I once again got the same error message. I repeated that routine at least three time, all three times I received the same message.
    I then got the bright idea to go into my time machine and went back to several days after I had installed the program previously (March 25, 2009) and retrieved both the program from the application folder, and the vb folder from the user library, restoring them to my present computer state. After all, I thought, if it worked on March 25th, those files should work now. DRAT, I was wrong, Got the same message at the same place in the startup routine.
    So, Dave and Dave, after a little more futzing around, I'm now back to the same place I was when I first posted about my problem: My win xp disk will still not mount. ****!!!
    Phil

  • Can I translate user defined table into mulilanguages

    Can I translate a particular field of my own data field into foreign languages in SAP B1?
    Actually I want to print shipping label in different langauages. And I want that address and the details of the shipping label transleted in a text file in order to print from command prompt.
    Pls help me . its urgent
    Thanks in advance

    Im not sure, if I understand you correct.
    I understood that you want to transalte the description of user defined field - ok?
    If yes, the only way is to move the UDF inside the form and based of selected language show correct description in label.

  • Can't find final layer in Flash template...any suggestions?

    Hello,
    I am working with Adobe Flash CS4, and a template from flashmo.com.
    I've found Flash CS4 to be very easy to use, and quite helpful in manipulating templates. However, as a beginner, there are still some things that I have had a bit of trouble with.
    This is the template-in-progress that I am changing: http://cybproductions.com/theatre/theatre_main_01.html
    Here is the flash file: http://cybproductions.com/theatre/theatre_main_01.fla
    I have been able to find the contents layers, and edit the text to create new pages, buttons, etc. But the one thing I have not been able to update or change, is where it reads "curtain." I would like to change it to the name of the theatre the site is for (Ilion Little Theatre Club), but can not find that layer anywhere in the file when I'm in Adobe Flash.
    As I am new to this, is it possible that the "Curtain" is a graphic that would need to be changed on its own in Photoshop and then loaded into the library and swapped? Or am I just missing the layer somewhere?
    It is one of the last pieces of the puzzle for this site, and any help would be greatly appreciated.
    Thank you.

    Thank you for such a quick response.
    I have not been able to click on the item. I can click on every other layer (the photo, the text on the site, the copyright footer, etc), but when I attempt to click on that, it just selects what appears to be the background or "frame" layer of the curtain that frames the site.
    May I ask (being a beginner), how I might go about unlocking all the layers or folders in Flash?
    I did notice when I opened the template, that the font of both the text, and that item reading "Curtain" did change, as the fonts weren't available. Is that any type of hint as to what type of file it would be? (A layer versus a graphic?)
    If so, is that something that can be re-typed in the ActionScript?
    Thank you again for the help.

  • I can't move a layer in photoshop CS6 Beta for Mac. I just get a red border

    I can't move a layer in photoshop CS6 Beta for Mac. I just get a red border around the canvas. Any Ideas?

    You might want to try posting in the CS6 forum.
    http://forums.adobe.com/community/labs/photoshopcs6?view=discussions

  • How can I translate a document in Adobe fom Spanish to English

    How can I translate a document in Adobe fom Spanish to English

    Hi maximike,
    Which document you are talking about?
    If this is a PDF file then No PDF translation tools exist, that make a new PDF, so far as I know. If the document is public you can put the URL into an online translation service like http://translate.google.com/. If it doesn't have a public URL you can copy and paste the text into it.
    Regards,
    Florence

  • How can I convert a layer into a smart object with Adobe Photoshop Elements 10?

    How can I convert a layer into a smart object with Adobe Photoshop Elements 10?

    That feature is only in PS. Elements as you buy it has only limited support for smart objects. If you use File>Place to add something to your image it will come in as a smart object (within the limits to which PSE understands smart layers). However, if you know someone who can write an action for you in PS you can install it in PSE, or you could look into something like elements+ from simplephotoshop.com.

  • Can we translate in captivate 7? I Have tried and changed the Caption and Notes. Can we change the on screen text of te normal slides, interactive call out boxes, screen recording slides and quizzes? If yes, please let me know the process.

    Can we translate in captivate 7? I Have tried and changed the Caption and Notes. Can we change the on screen text of te normal slides, interactive call out boxes, screen recording slides and quizzes? If yes, please let me know the process.

    Of course! Here ya go
    For the record, I did create a new project with only two slides to try and duplicate the issue. I had the same problem. I unchecked the Mouse Click Sound check box, republished and the slide auto advanced. I'm wondering if a default sound file was somehow moved or deleted? I discussed uninstalling and reinstalling C7 onto my laptop, but that's a frustrating solution haha

  • How can i translate the page????

    How can i translate the page

    There is currently not a feature, however there are many add ons that you can choose from to change a particular language to another:
    [https://addons.mozilla.org/en-US/android/search/?q=translate&platform=android&appver=any&page=1&_pjax=true]

  • Can one move one layer relative to another in Elements 11?

    Can one move one layer relative to another in Elements 11?

    Yes. Open the layers pallet:
    Window >> Layers
    You can drag layers up and own the stack. Wait until you see a blue line and then drop.

  • Can we change the layer's opacity?

    Can we change the layer's opacity in flash CS4? Such as change the photoshop's layer's opactiy.

    No and yes.
    No. A layer is just for stacking things and organizing your artwork. So there is no way to change a whole layer.
    Yes. Movie clip, graphic, and button symbols are the main paradigms in Flash and each of them can have their transparency altered. (In Flash is is called alpha.) So convert your artwork into a movieclip or graphic and then from the properties panel look for the color effects drop down and change the alpha.
    Or you can draw your art with colors that already have an alpha value set.

Maybe you are looking for