Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9008441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:56:20+00:00 2026-06-16T01:56:20+00:00

Basically I was trying to achieve this: impose an arbitrary image to a pre-defined

  • 0

Basically I was trying to achieve this: impose an arbitrary image to a pre-defined uneven surface. (See examples below).

Any image –> enter image description here

I do not have a lot of experience with image processing or 3D algorithms, so here is the best method I can think of so far:

  1. Predefine a set of coordinates (say if we have a 10×10 grid, we have 100 coordinates that starts with (0,0), (0,10), (0,20), … etc. There will be 9×9 = 81 grids.
  2. Record the transformations for each individual coordinate on the t-shirt image e.g. (0,0) becomes (51,31), (0, 10) becomes (51, 35), etc.
  3. Triangulate the original image into 81×2=162 triangles (with 2 triangles for each grid). Transform each triangle of the image based on the coordinate transformations obtained in Step 2 and draw it on the t-shirt image.

Problems/questions I have:

  1. I don’t know how to smooth out each triangle so that the image on t-shirt does not look ragged.
  2. Is there a better way to do it? I want to make sure I’m not reinventing the wheels here before I proceed with an implementation.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:56:21+00:00Added an answer on June 16, 2026 at 1:56 am

    This is called digital image warping. There was a popular graphics text on it in the 1990s (probably from somebody’s thesis). You can also find an article on it from Dr. Dobb’s Journal.

    Your process is essentially correct. If you work pixel by pixel, rather than trying to use triangles, you’ll avoid some of the problems you’re facing. Scan across the pixels in target bitmap, and apply the local transformation based on the cell you’re in to determine the coordinate of the corresponding pixel in the source bitmap. Copy that pixel over.

    For a smoother result, you do your coordinate transformations in floating point and interpolate the pixel values from the source image using something like bilinear interpolation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am basically trying to achieve what this page has: When clicked on an
Basically what I am trying to achieve with this section of code is to
I'm basically trying to achieve this effect. It can be done with pretty much
Basically what i am trying to achieve is having the ul menu on the
Basically what I'm trying to achieve is a program which allow users to connect
I'm trying to discover the best strategy to achieve this goal, so if anyone
The goal: I'm trying to achieve something like this in WPF: (source: wordpress.org )
I'm using GWT and its underlaying DOM capabilities. What I'm basically trying to achieve
I'm basically trying to achieve the following scrollable layout and am looking for some
I'm trying to achieve this effect with jQuery. I wrote some of the code,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.