🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.algorithms
Article #43

Re: 2D image rotation problem

#43
From: Xiaoyi Wu
Date: Mon, 15 Jan 1996 20:04
42 lines
1987 bytes
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?

Thanks.

In article <4de7gt$j0i@charm.magnus.acs.ohio-state.edu>,
xiaoyi@bmecg.bme.ohio-state.edu (Xiaoyi Wu) writes:
> Path: magnus.acs.ohio-state.edu!bmecg.bme.ohio-state.edu!xiaoyi
> From: xiaoyi@bmecg.bme.ohio-state.edu (Xiaoyi Wu)
> Newsgroups: comp.graphics.algorithms,comp.lang.c
> Subject: 2D image rotation problem
> Date: 15 Jan 1996 18:47:57 GMT
> Organization: Biomedical Engineering OSU
> Lines: 12
> Distribution: world
> Message-ID: <4de7gt$j0i@charm.magnus.acs.ohio-state.edu>
> Reply-To: xiaoyi@mozart.bme.ohio-state.edu (Xiaoyi Wu)
> NNTP-Posting-Host: bmecg.bme.ohio-state.edu
> Xref: magnus.acs.ohio-state.edu comp.graphics.algorithms:26053
comp.lang.c:153880
> 
> I did read the FAQ and digged up Graphics Gems, but
> no source code was given. So, here it comes:
> 
> I need to rotate a 2D image by a specified angle with
> respect to a specified point within the image.
> 
> Has anyone written a program like this before? I'd
> greatly appreciate any inputs. 
> 
> Thanks.
> 
> Xiaoyi
Technical Details
Message-ID: <4dec11$jg5@charm.magnus.acs.ohio-state.edu>
Path: arc1-ca.pugleaf.net!bmecg.bme.ohio-state.edu!xiaoyi
References: <4de7gt$j0i@charm.magnus.acs.ohio-state.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!bmecg.bme.ohio-state.edu!xiaoyi
From: xiaoyi@bmecg.bme.ohio-state.edu (Xiaoyi Wu)
Newsgroups: comp.graphics.algorithms,comp.lang.c,sci.image.processing
Subject: Re: 2D image rotation problem
Date: 15 Jan 1996 20:04:49 GMT
Organization: Biomedical Engineering OSU
Distribution: world
Message-ID: <4dec11$jg5@charm.magnus.acs.ohio-state.edu>
References: <4de7gt$j0i@charm.magnus.acs.ohio-state.edu>
Reply-To: xiaoyi@mozart.bme.ohio-state.edu (Xiaoyi Wu)
NNTP-Posting-Host: bmecg.bme.ohio-state.edu