Re: Is there anyone who has developed map projection library?



On Thu, 03 Nov 2005 18:31:29 +0100, willem van deursen
<wvandeursen_nospam@xxxxxxxxxxxxxxxxxx> wrote:

>To add a comment to Pauls thoughs on transformation of images:
>Instead of scanning through the input image, calculate a new location for each
>pixel in the output image and do a bilinear or other interpolation to fill in
>the gaps you might consider the following:
>calculate the corners of the transformed image and set up a large enough image
>to hold the entire transformed image. Now scan through the OUTPUT image and find
>the location of this pixel in the original image and fill it with that value.
>You actually are performing the REVERSE operation here: find the original
>location of output pixels. Now you don't need the interpolation afterwards,
>because your entire output image is filled with values (or outside the input image)
>
>Willem
>


Thanks, Willem. Of course that is a better way of doing it - though
you still need interpolation (or possibly averaging, if a single pixel
of the output crosses several pixels of the input) of the input image,
unless nearest neighbour is good enough. However, you avoid the
post-processing scan.

Paul
.



Relevant Pages

  • Re: Is there anyone who has developed map projection library?
    ... Instead of scanning through the input image, calculate a new location for each pixel in the output image and do a bilinear or other interpolation to fill in the gaps you might consider the following: ... Now scan through the OUTPUT image and find the location of this pixel in the original image and fill it with that value. ... I have been looking at making a standalone projection utility that I can use outside of my ARCView. ... The transformation of images, though, isn't as easy as you might ...
    (comp.infosystems.gis)
  • Re: Understanding JPEG technology in a nutshell
    ... that it does not have to store every single pixel but rather that it ... the need for blocks (why "macroblocks"? ... Number 1 is that this transformation decorrelates natural image data, i.e. it transforms it into a basis that is much better compressible. ... Instead, the 8x8 block is transformed into a different basis, i.e. each block is constructed as a linear composition of the DCT basis functions. ...
    (comp.compression)
  • Re: Linear Algebra question: newbie
    ... I have a linear transformation matrix that maps output pixel ... Shouldn't it just be enough to invert this matrix and multiply my ... 2- apply the necessary transformation in this continuous domain ...
    (comp.soft-sys.matlab)
  • Finally completed new transform; advise me what to do ?
    ... and that is where loss take place; ... => 1) Pixel values are undergoing forward transformation ... => 5) My transform will pack all the pixel values in a compact ... Randomness, stochastic process, linear algebra; ...
    (comp.compression)
  • Re: dilation
    ... one pixel off, and I had array index out of bound errors). ... int foreground = 255; ... //create binary image from the input image ... //foreground, i set it to foreground value and exit for cycle. ...
    (sci.image.processing)