🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.algorithms
Article #45

Re: 2D image rotation problem

#45
From: Martin Leese - OMG
Date: Tue, 16 Jan 1996 15:02
29 lines
1816 bytes
On 15 Jan 1996 20:04:49 GMT Xiaoyi Wu (xiaoyi@bmecg.bme.ohio-state.edu) wrote:
>> Just thought I might make things a bit more clear
>> here:

>> The FAQ talked about doing a reverse rotation to
>> avoid holes in the rotated image, which I followed.
>> The question is: even if you do it the reverse way,
>> you still end up with some pixels that fall out
>> of the range of the source image. How do you deal
>> with this - for now, I just arbitrarily assign them
>> the same value as the boundary pixels. Is there a
>> better way?

It really depends on your application.

Typically, you would specify a background colour and assign this to 
the "outside" pixels.  Alternatively, you could crop the output image 
so there aren't any "outside" pixels.  The key, here, is to think about 
your application.

It really depends on your application.

Regards,
Martin
E-mail: mleese@omg.unb.ca
WWW:    http://www.omg.unb.ca/~mleese/
________________________________________________________________________
 Want to know how Ambisonics can improve the sound of your LPs and CDs?
  See the Ambisonic Surround Sound FAQ.  Details on my WWW Home page.
Technical Details
Message-ID: <4dgelr$b85@sol.sun.csd.unb.ca>
Path: arc1-ca.pugleaf.net!news.unb.ca!hudson!mleese
References: <4de7gt$j0i@charm.magnus.acs.ohio-state.edu> <4dec11$jg5@charm.magnus.acs.ohio-state.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.unb.ca!hudson!mleese
From: mleese@hudson.CS.unb.ca (Martin Leese - OMG)
Newsgroups: comp.graphics.algorithms,comp.lang.c,sci.image.processing
Subject: Re: 2D image rotation problem
Followup-To: comp.graphics.algorithms,comp.lang.c,sci.image.processing
Date: 16 Jan 1996 15:02:19 GMT
Organization: Ocean Mapping Group, University of New Brunswick, Canada
Distribution: world
Message-ID: <4dgelr$b85@sol.sun.csd.unb.ca>
References: <4de7gt$j0i@charm.magnus.acs.ohio-state.edu> <4dec11$jg5@charm.magnus.acs.ohio-state.edu>
Reply-To: mleese@omg.unb.ca
NNTP-Posting-Host: hudson.omg.unb.ca
X-Newsreader: TIN [version 1.2 PL2]