Pixel-slop in Photoshop image rotation

See three small bitmaps attached: <<original.bmp>>; <<45cw.bmp>>; <<45ccw.bmp>>.
The original is a simple 21x21 pixel test pattern, black except for white pixels in the center and corners.  It's appearance should be the same whether rotated 45 deg clockwise or counterclockwise, and the appearance should keep the symmetry of the original.
I used "Bilinear Interpolation".  I used a gamma = 1 profile, and to be extra-safe set Edit>Assign Profile>Don't Color Manage ...
I set the background color to black in the toolbox.  Thank you John Joslin.
Then I rotated the original image 45 deg clockwise and counterclockwise to make the other two files.  Why to the resulting images look so different?  Why are they lacking in symmetry?  With the other interpolation methods too, clockwise and counterclockwise rotations give quite unlike images.  A partial explanation could be that Photoshop rotates about a point not in the image center, but this doesn't explain enough. I tried 20x20 patterns which showed similar problems.
I'm mostly interested in bilinear interpolation because this is supposed to conserve the total pixel value.  Each white pixel in the original has value 255, so the blob resulting from this pixel should have total value 255.  Look at <<45cw.bmp>>.The blob on the left has total value 69+94+13+5+18+1=200.  The blob on the right is an almost perfect antipode with total value 1+18+6+13+95+68=201.  The blob at the bottom doesn't resemble the side blobs and has total value 42+56+40+3+55=196.  The blob at the top has total value 40+41+56=137.  Clearly Photoshop has lost the top of the top blob.  (It also does this with 45 deg counterclockwise rotation, and also with 135 deg rotation.)  The blob in the center has total value 49+49+48+47=193.  All of the blobs fall far short of 255.  Photoshop might be excused for messing up edge pixels, but not a central pixel.
Photoshop messes up rotation at the single pixel level.  I made a test pattern with clusters of 4 white pixels and the rotation of this did conserve the total value for the central four.  Edge pixels still showed problems.  Photoshop image rotation appears to be based on sloppy code.

Then how do you account for my post 11? How to you account for X2 detecting a extra hidden row on the left and top side of of the image? There is no hidden row on the bottom or rightside.
Adobe digimarc did not detect anything.
Paint Shiop Pro X2 digimarc did.
I have posted the proof. It is not my fault that Adobe digimarc addon cannot detect the watermark.
The watermark is there.
dcouzin wrote:
Fantasy watermark.  First of all a black pixel isn't a watermark.  It can't "hide" a watermark.  Hiding has no meaning in this context.  If the file header has a digital ID that's fine, but it's not "hidden" in the image, not under a black pixel.
All of your reported O=255 data is not in the image either.  There aren't enough bytes in the file to specify opacity at each pixel.  This is a 24-bit RGB image not a 32-bit RGBO image.  Maybe O=255 is specified globally somewhere in the header, but I don't see "FF" anywhere in the header.  More likely full opacity is presumed for a RGB image.
THERE IS NO WATERMARK.
I suggest you download BinViewer 2.0 and BinEditor 2.0 which are freeware. Look at the file <<original.bmp>>.  You will count 114 zeros between the first "FF FF FF" and the next "FF FF FF".  114 divided by 3 equals 38 so "00 00 00" appears 19 times between the "FF FF FF"s.  Hey, that's the 19 black pixels between two of the corner white pixels.  Now you can use BinEditor 2.0 to change some of the "0"s or "F"s to anything you want.  You can write "dec9" in there.  Save and open in Photoshop to see what you've painted.  It's great fun creating colors and shapes by poking numbers into a file.  It's the opposite of Photoshop's glistening gliding paintbrushes, and it has a powerful truth. 
This is why I want to know what Photoshop does when, for example, it rotates an image.

Similar Messages

  • Rotate to fit / photoshop image processor

    Anyone know what happened to the Rotate to Fit feature in bridge/tools/photoshop/image processor? I have to make several web photo galleries and this most important feature seems to be missing with CS4.

    To clarify - older photoshop (or bridge) programs, you could put in the dimensions you wanted and check a checkbox that said something like "rotate to fit". So if I entered 400x600px, then photoshop would make Portrait images 600 tall x 400 wide, and Landscape image 600 wide by 400 tall.
    Photoshop CS4 doesn't have that option so I have to go through all of my images, select all the landscape images, put in 600 wide x 400 tall, and run the script. Then gotta Go Back... select all of the Portrait images.. and run the script again but this time for 600 tall x 400 wide. Such a pain - gotta be a better way just haven't found it yet! help!

  • Editing in Photoshop CS4 rotates image

    After making adjustments in Lightroom 3.2, if I then edit the image in Photoshop CS4, the image rotates slightly clockwise and affects any cropping and adjustments to the vertical I have already done in Lightroom. The rotation occurs as the image is opened in Photoshop so that when I return from Photoshop to Lightroom my image has changed (not counting those made in Photoshop). Why is this happening? I am working in Windows 7.

    Thanks, Dorin, for your response. That sounds like the right explanation. Would CS5 handle the perspective adjustments and lens corrections correctly?
    The files I am editing in Lightroom are pef (Pentax) or dng converted from pef by DxO. Right now I am right-clicking the image in Lightroom and selecting "Edit in Adobe Photoshop CS4". I get the same result with Ctrl+E; but Ctrl+Alt+E does nothing for me. Nothing happens with the latter. That may be because I am already using Topaz's tlfusionexpress2 as Lightroom's secondary editor.

  • Why is it when I zoom at any value other than 25%, 50% or 100% my photoshop image looks pixelated?

    This is really bugging me and I can't get any work done...but I've had Photoshop for years so I know that if you zoom at any value other that 25%, 50%, 100%, 200% etc then the image loses some of it's quality, but up until today the image looked a little blurry when at a different zoom value, but now it looks really pixelated which makes the image looks really ugly and is making it hard to actually do anything. I have no idea what I did to change it to this, but now I can't change it back and I've tried everything I can think of.

    I've been using Photoshop for a decade and a half and have never, ever seen what you describe.
    Just a clarification in general, not necessarily referencing this or any other post:
    BOILERPLATE TEXT extracted from the FAQ:
    https://forums.adobe.com/thread/375816?tstart=0
    Do not be abusive or aggressive in your tone
    An aggressive, demanding, accusatory or abusive sounding post will often evoke an aggressive or abusive and unhelpful reply.
    Remember, you are not addressing Adobe here in the user forums.  You are requesting help from volunteers users just like you who give their time free of charge. No one has any obligation to answer your questions.
    We are not here to defend Adobe or to debate users.  We can only provide answers, solutions and workarounds.

  • Image rotated in bridge but not photoshop

    Hi All,
    re: CS5 bridge and photoshop
    I rotated a bunch of images in bridge.  But, they did not rotate 180degrees in photoshop.  The orientation is noted in the EXIF metedata.
    I saw this rotation command performed on a CS5 video tutorial.
    Can you tell me what setting in bridge or photoshop is preventing the conversion in photoshop?
    Thanks,
    Starsky
    Windows 7 64bit
    CS5 bridge 4042
    CS5 photoshop 1203

    What type of RAW files are we talking about, NEF,CR2 or other?
    Bridge is just a flle browser, and RAW files are opened and edited in Adobe Camera Raw.  Do you just get a thumbnail, but it willl not open in ACR?
    Does ACR work with other RAW images that have not been corrupted.
    Do you have a backup (highly recommended) of these images somewhere?  Should be on seperate physical drive or on a DVD.

  • Image width difference from flash and photoshop while rotating

    Hi,
         ->     I have loaded a image in the flash and a copy of a image in photoshop.
         ->     Then i have checked the width of a image in both the application and they look same.
         ->     In flash window>transform>angle i have given angle 0.7
         ->     In photoshop Image>Image Rotation> Arbitary i have given angle 0.7
         ->     I have checked width of a image in both the application and they are not same.
         Couldn't able to figure it out the reason for the change. Could any one assist me for the same to acheive the same.
    Thanks and Regards,
    Kamesharan A.

    Something like 0.7 won't really show up very well for an example so here's PS CC and Flash CC rotating (approx) 200x200 px red square 20 degrees. They look pretty exact to me (although drawing and placement was done by hand so the slight difference in position is me). Rotation looks good.
    Here's what I get from measuring width (but of course the width is of the rotated object), 256px or so on both:
    For hand drawn 200px squares (one is 199.2px, etc) that's showing you it's pretty exact.
    Mind you if you do a Image Rotation (I did a transform) then it will rotate in Photoshop via a different point. The rotation of the object itself looks the same (and the width is 257) but it's just positioned differently.
    Your results should be similar.

  • Photoshop CS5 Image Rotation Problem

    Hi:
    I have recently found out that I am having a problem with image rotation in CS5.  If I have a Background layer and jump the layer to duplicate it and then set the jumped layer to Flip Horizontal both the jumped layer AND the Background layer are flipped horizontally as if they are linked in some way.  The only work around that I could come up with was to duplicate the document, flip the layer in the duplicate and then combine the documents.  It works but what a pain.  As anybody else experienced this problem?
    Herman R.

    Charles:
    My Background was locked and only the jumped layer was selected. 
    However, the "problem" grows more intriguing.  I tried using Duplicate Layer rather Command J (is there a difference between these two??) and was pleasantly surprised to find that the problem disappeared!!  I then went back to Command J and still had the same problem.  To make a long story short, I went back and forth several time and then even the jumped layer worked as it should.  It was as if it had "learned" the correct behavior!  I tested it now ony several documents and all is fine.  Does this make any sense to you?
    Herman R.

  • Help w/ image rotation in slideshow

    Hi All,
    I've created a bit of a problem for myself. A client provided a folder full of images to add to a slideshow in DVDSP. I added all of the images as normal, then I noticed that a bunch of them were taken in portrait mode and needed to be rotated. I didn't see any way within DVDSP to rotate them, so I opened up the folder in Adobe Bridge and quickly rotated them. I went back and opened the project in DVDSP and the images did not rotate. I trashed the MPEG and PAR folders and reopened the project and the images still did not rotate. So I figured that DVDSP doesn't recognize whatever tag Bridge adds to the file to indicate that the image should be viewed rotated. Next, I thought that I would just have to open each one in Photoshop and rotate them and then re-save. The only problem is that when opening them in PS, the images are already rotated. So now I don't know what to do. I can't rotate them again in PS and DVDSP doesn't acknowledge that the images are rotated.
    Any suggestions?
    Thanks,
    Chris

    Actually, Bridge does more than just rotating the thumbnails. It apparently embeds some code in the metadata that instructs programs to open the image with rotation applied. When opening the image in PS, Preview, GraphicConverter, and a few other programs the image opens with the rotation from Bridge applied.
    In any event, I have an old PS action I created years ago that prepares images for slideshows. It fits them into a 720x480 frame and then applies any needed background extension and finally converts the image to a .9 pixel ratio image. I did that to all of the modified images from Bridge and it worked fine.
    If Apple ever bothers to update DVDSP again they should really address the inability of the program to handle this type of situation.

  • Loss of sharpness upon image rotation: Aperture vs. other software

    I have carefully studied the resulting loss of sharpness upon rotation/straightening of images. This topic does not apply to 90/180 degree rotations.
    When any image is rotated (be it JPEG or uncompressed), there will be a slight loss of quality (seen as a loss of sharpness) due to interpolation. The method of interpolation applied will affect the degree of quality degradation.
    Simply put, professional applications such as Adobe Photoshop and even Adobe Lightroom use superior interpolation methods when performing rotations (and who knows, perhaps for other transformations/scalings also?!). Apple Aperture, on the other hand, uses an interpolation method that renders a loss of image sharpness on par with inferior consumer-level software such as Google Picasa or iView Media Pro. Yes, folks, here's a clear reason to select Adobe Lightroom over Apple Aperture.
    Please take a close look at the comparison yourself:
    http://web.mac.com/rishisanyal/iWeb/Homepage/Sharpness.jpg
    Make sure you are viewing the image I have posted at 100%, not scaled, in order to clearly see the inferior quality of images rotated with Aperture & Picasa.
    Apple needs to address this problem by implementing a better interpolation algorithm with its straighten tool. It is sad that we are using and paying for a 'Professional' application that yields results on par with FREE software such as Google Picasa.
    As much as I like Aperture for its other features/integration into Mac OS X, I am switching to Lightroom as of now. Straightening/rotating images is an absolute must, used by every photographer on a daily basis. The loss of image quality, therefore, is unacceptable.
    Please post to this thread if you have experienced the same problem or are simply concerned over this. The more people that show concern, hopefully, the more likely Apple is willing to do something about this ASAP.

    Surely any rotation (apart from the 90/180/270 ones) is by-definition a smoothing operation ? You have to take the values from adjacent pixels and combine them based on the rotation, then average (or use a point-spread function) them to rescale the values back into range.
    Looks to me as though the Adobe products are just applying a sharpen operation immediately after the rotation, whereas Aperture isn't. Or Aperture could be using a simple average of the values, where Adobe is doing a gaussian summation-of-components or something similar.
    My guess would be that they "do a quick sharpen", otherwise it would take longer to do the rotate. The only way you'll ever know is if the developers tell you though...
    -=C=-

  • How can I substract 2 pixels form the same image

    I would like to know which library should I use from labview 7 and/or imaq vision so that I can substract the COORDINATES of 2 PIXELS from the SAME image.
    THANKS !!!

    Hello nobuto,
    never worked with IMAQ by myself, but a collegue did...
    He used a function "IMAQ Select Rectangle" to select a ROI (region of interest). You could do so for your 2 pixels. This functions gives you an "IMAQ Rectangle" (a cluster of 5 elements: top, left, right, bottom, rotation). You could uncluster the needed elements and do your subtraction.
    Hope this helps.
    Best regards,
    GerdW
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Why does my high res photoshop image appear blurry when placed in InDesign and Exported as PDF?

    Hi there,
    I have a problem I've been trying to solve for days but just can't find the answer anywhere on the internet.
    I have a large, good quality photoshop file (2268 x 979 pixels, resolution 300 pixels per inch). When I place it into InDesign, the image appears OK (I've changed my display settings to HIGH) - I then resize it in InDesign to 10% and the file still looks great! Then, when I export it as PDF (high quality print) it looks blurry.
    Does anybody know why? The strangest thing is, I've placed other photoshop images in the same InDesign file and they look crystal clear. It is just this one I am having trouble with. I've saved it in the same folder as the other pictures, I've tried placing it as psd. , jpg. , photoshop pdf, png. everything...
    The image looks great in both photoshop and indesign, only when exported as pdf it looks awful.
    Any help will be greatly appreciated,
    Many thanks in advance!
    Weronika

    It's probably the extreme reduction -- you're throwing away 90% of the image pixels and interpolating, and then using jpeg compression on top.

  • How to recover a Photoshop Image that was corrupted with 10.5.3

    As so many people have faced loosing work because their images have been corrupt when saving across a network, I thought it would be a good idea to make a separate topic for this possible fix/recovery.
    This will only work if you know the dimensions of your file in pixels and the number of channels in the image. Also all your layers will be lost, but as a last resort this is worth trying:
    In Photoshop choose File > Open
    Change Enable to "All Documents"
    Select the corrupt image you would like to recover
    Change the format to "Photoshop Raw" and click OK
    Now you need to enter the pixel dimensions for the image and enter the number of channels
    then go ahead and open the image.
    If you are lucky and have entered the correct dimensions there is a good chance you will now have a usable image open.
    If you get the dimensions wrong or if the image is too badly corrupt you will probably be looking at a load of coloured lines, try a few more times with different dimensions and you may get something you can work with
    Good Luck

    When a POP account is deleted from Mail Preferences Accounts, all the mail files locally cached are deleted. A warning splash screen comes up and tells you that, when you are deleting a POP account from Mail Preferences Accounts, and it asks you are you sure that you want to proceed deleting the account. If you had originally configured the account setup to leave downloaded messages on the server and to store drafts on the server, then recreating the account configuration in Mail Preferences Accounts would, I believe, get you back to normal. Otherwise, you may be needing to use some data recovery software, but after a week, it is likely that those deallocated blocks of hard disk, where your mail and important draft resided, have likely been overwritten and are now unrecoverable.
    You may want to consider getting an IMAP account somewhere for the future, where deleting an account configuration from Mail Preferences Accounts does not affect mail stored on the IMAP server (or drafts, if you store drafts there, too). IMAP also has the added benefit of staying sync'ed between multiple computers, too. Some email providers are not too keen on them because then they have to provide storage space for customers above and beyond storage space for their new incoming unread mail; that's why they do POP.

  • Creating a magazine from Photoshop Images and transferring them to InDesign

    Hello,
    I'm in the process of creating a magazine. I have already started created the pages including their layout in Photoshop. I have CS4 and I want to transfer those images to InDesign and also incorporate Flash to produce a web-base magazine. How do I transfer those Photoshop images (files) into InDesign and also incorporate Flash.
    Attached are some finished pages so that you will have something to show me, in detail, on how this process is done, and/or IF, it can be done.

    Hi, smitty212.
    Hopefully everyone can agree to ignore some of the dialog above.
    Your question is a bit difficult, in large part because it appears that you did a lot of work in a way that could be very difficult to transfer, but you haven't given us full information about what you really have and what you need.
    Generally speaking, editable text in Photoshop is not very flexible. It's not easy to manage large amounts of text there, and depending on how you have used it, it may be nearly impossible to get the text out without retyping it.
    The normal use of InDesign, as you've probably gathered by now, is to place the text in text frames (either by typing or by File > Place-ing it from another application, or maybe cut-and-paste but probably not), and to place graphics in graphics frames (again, with File > Place. Never with cut-and-paste, which causes all manner of problems).
    Ideally, then, you'd have all the images in your layout as seperate files, and the text, too, and you could compose the layout as normal.
    The hard part will be rescuing the text. You may be able to cut and paste it out of Photoshop.
    It is possible that you might be able to save some work by converting pieces of the Photoshop layout to smart objects and placing those into InDesign.
    One thing to consider is how resolution-independent your output is going to be. In Photoshop, everything is a pixel. So if the work was done at a low resolution, it won't support resizing in InDesign. This is especially true of text that has been rasterized (converted to pixels). But if everything was high enough resolution in Photoshop, you may be able to get away with just placing the Photoshop images in InDesign. It won't be easily editable, but maybe that's ok.
    I hope this helps.

  • Image Rotation with AE SDK

    Hello all,
       I am wondering if someone could suggest a desription of image rotation using Adobe AE SDK - in a Forum entry or in some other related document. While some elements of rotation may be considered available in SDK sample projects - Shifter for all pixels, CCU for individual pixels manipulation - I will appreciate more details for variable subpixel processing and neighbouring pixel interpolation for variable row-by-row shift. It is assumed the angle of rotation is fixed during the effect, and there are no worries about the appearance of out-of-border picture elements since there is a background. Speed will not be an issue as well.
       Thank you in advance.        

    well, the easiest way for rotating an image through the sdk is by using transform_word().
    it takes a matrix (or matrices for motion blur), so you can do any transform operation concievable via a matrix.
    here's a thread with some detail about this function:
    http://forums.adobe.com/message/1970939#1970939
    as for line by line transformations...
    there are some toos in the SDK, but they're available only for AEPGs of type "artizan" (the plug-ins that render whole comps),
    so if you're planning a layer effect, these tools are out of the question.
    you can do that calculation manually in a few ways.
    you can create a tranformation matrix and run each pixel through it, which would probably be the fastest most versitile way.
    or you can use trigonometry, which would probably be the easiest to implement but the slowest to process.
    using the sdk's subpixel sample functions would complete the tools you need, but keep in mind that this would be the slowest possible way of rotating an image.

  • Why the White Lines around imported Photoshop Images

    Working in CS6, importing native Photoshop images into an Illustrator gradient.  Certain imported Photoshop images, with transparent background, produce white lines bordering the images.   The white lines stand out against the AI gradient.  The whites lines are not visable on screen.  They came out in the commercially printed product.  The overall AI document, with PS images placed and linked, was save to a PDF.  It was then printed from the PDF. The PDF, as viewed on screen, does not show the white lines either.  Why and how do the white border lines (the box surrounding the image) appear?

    First I would recommend making sure there are indeed »no pixels« there in Photoshop – applying the Layer Style Stroke can help locate stray, semitransparent pixels.
    Other than that I am afraid your print service provider may not have provided optimal output.
    What print process was employed anyway?
    It looks like flattening effects, but those should simply not be visible in print.
    They happen when exporting X1 or X3 pdfs, which disallow transparency, so in creating the pdf the psd files that have transparency are flattened with whatever background and often broken up into smaller parts.
    That way a whole mess of fragmentary images can be created, as one can see when one opens such a pdf in Illustrator.
    One can avoid that by creating X4 pdfs, which do allow transparency, but if those can be processed by the printer is another question.
    But this issue might be more suitable to the Illustrator or pdf Fora.

Maybe you are looking for

  • Plzzz help me

    my iphone 4 was off when turn it on they show me a usb cable and itunes when i blog it on itunes they say check the survice options and processes in your country how can i turn it on back ?

  • Flexible Grouping

    I have a crystal report to convert in Webi. Universe build in ready. Is there a way to do flexible Grouping on the objects.Please find the screen shot of the crystal reports parameters http://www.forumtopics.com/busobj/viewtopic.php?p=770073#770073 I

  • Pdf dowloading problems

    When trying to download pdfs of academic journal articles I either get the first page of the document (and nothing else) or a message that says that I need to download additional add-ons, followed by a page of many options with no suggestion as to wh

  • 5d Mark III not downloading RAW

    Got my 5D Mark III a couple of days back. I took a few pictures in RAW-JPEG. While I tried to download, it launches EOS Utility(latest version) and hangs. I tried the same CF card on 40D and it was able to import without problem. I tried other softwa

  • Dynamically assigning query/view to a table

    Hi All, i want to assign a view to a table dynamically in WAD as per certain condition, can any 1 tell me how to do this? thanks in advance Godhuli