Skip to main content
Participating Frequently
September 11, 2017
Question

warping object in a rectangle in a fast way

  • September 11, 2017
  • 5 replies
  • 2227 views

How can I transform a selection made using the Magic Wand tool into a rectangle?

In my case I have a rug shot from the ceiling and the boundaries are not straight, perspective is ok I' m not talking about that

I just want the boundaries to fit the rectangle

I tried the transform tool but didn't find a way to transform the selection into a rectangle (or any shape for example) in a fast way (without aligning by my self)

I' m missing something for sure

    This topic has been closed for replies.

    5 replies

    angie_taylor
    Legend
    September 12, 2017

    Have you tried using Quick Mask mode? With your selection made, click on the Quick Mask button, this will turn your selection into an overlay that can be transformed and warped as you wish. You can also add or subtract from the selection by painting with black or white. You can even smudge or blur selections or even add effects to them.

    tmyusuf74
    Inspiring
    September 12, 2017

    adriossAuthor
    Participating Frequently
    September 12, 2017

    I guess I don't get it :/

    davescm
    Community Expert
    Community Expert
    September 12, 2017

    I can't think of an automatic way but, as an alternative to puppet warp you could put some guidelines over the image and use the Liquify Filter (specifically the forward warp tool within that filter) to nudge the distortion more into line.

    Definitely a case where a few minutes spend pulling each rug straight would save hours in Photoshop

    Dave

    angie_taylor
    Legend
    September 12, 2017

    Select the layer and go to Filter > Lens Correction. In there , click on the Custom tab, in there you'll find the Geometric Distortion settings, adjust the Remove Distortion slider till your edges correct themselves. You may need to adjust the Horizontal or Vertical Perspective values too to get the result you want.

    Hope this helps :-)

    adriossAuthor
    Participating Frequently
    September 12, 2017

    It' s not that kind of distorsion you can fix using lens correction, it's not "uniform"

    the shot is mad by putting the rug in level with the floor

    it changes depending on how who did the shot put the rug on the floor

    Myra Ferguson
    Community Expert
    Community Expert
    September 12, 2017

    A simpler but less precise method would be to use Edit > Transform > Warp. You could go to View > Show > Grid to get turn on the grid to some help with lining up the edges.

    adriossAuthor
    Participating Frequently
    September 12, 2017

    thank you, but that is exactly what I wish to avoid

    Myra Ferguson
    Community Expert
    Community Expert
    September 12, 2017

    Then maybe look in to ways to automate generating displacement maps from the images then apply the displacement to each. I'm trying to think how you could make that kind of map, though. It's not like you'd be turning the rug image into a displacement map. It would look completely different from the rug design. It would have grayscale values that that distort the rug image into the straightened shape. So maybe this is more of a lead than an actual answer.

    c.pfaffenbichler
    Community Expert
    Community Expert
    September 11, 2017

    Could you please post a screenshot to illustrate the issue?

    Do you want to transform the Selection or the selected content?

    adriossAuthor
    Participating Frequently
    September 11, 2017

    WrSo3xO.png

    that's an example of what I' m talking about, as you can see in the right and the left side the boundaries are not straight in some part

    Legend
    September 11, 2017

    I think Puppet Warp is the way to go. It's not fast or automatic, but I think it's the way to achieve the best result.