Results 1 to 4 of 4
  1. #1
    JdeSyph is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default Apply a perspective transform

    Hi,

    I would like to know how I can apply a perspective transform to a picture.
    Actually, I have a background picture of an object that is not taken from the front but from the side. I would like to position another image (taken from front, so it is "flat", or "2D") on the first image and to apply a perspective transform to the second image so we can think the two images are actually one.

    Any idea how to do that ?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,519
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by JdeSyph View Post
    Hi,

    I would like to know how I can apply a perspective transform to a picture.
    Actually, I have a background picture of an object that is not taken from the front but from the side. I would like to position another image (taken from front, so it is "flat", or "2D") on the first image and to apply a perspective transform to the second image so we can think the two images are actually one.

    Any idea how to do that ?
    Rotate that second picture over the Z-axis; translate and map it on the other picture. Without any further information this is all I can suggest.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    JdeSyph is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default

    I found the class PerspectiveTransform in the Java Advanced Imaging library but I don't know how to use it and I found nothing on the Internet... :confused:

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,519
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by JdeSyph View Post
    I found the class PerspectiveTransform in the Java Advanced Imaging library but I don't know how to use it and I found nothing on the Internet... :confused:
    I don't know that class/method but what I always do is read the documentation and experiment a bit ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. How to apply PMD for JSP,HTML
    By Devarajan in forum Advanced Java
    Replies: 8
    Last Post: 01-28-2011, 09:48 AM
  2. Hibernate perspective in Eclipse Helios
    By redforce.bala in forum Eclipse
    Replies: 0
    Last Post: 10-01-2010, 07:55 AM
  3. <java> perspective
    By beowulf1416 in forum Eclipse
    Replies: 2
    Last Post: 12-11-2009, 07:07 AM
  4. how to apply gravity in tossing an egg
    By santhoshnanjappa in forum New To Java
    Replies: 1
    Last Post: 07-01-2009, 02:26 PM
  5. show Confirm Perspective Switch dialog box
    By mostafa in forum Eclipse
    Replies: 0
    Last Post: 11-22-2008, 11:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •