Re: using a pixel shader for undistorting an image?



On 12 Apr, 11:46, Harris <xgeorg...@xxxxxxxxxxxxx> wrote:


The problem you are describing is generally known as "camera calibration"

Not exactly, maybe I was not clear enough. I already did the
calibration, now I need to use the results of it to undistort the
images coming from the camera, I know how to do this in C++, what I
want to do is to move this computation onto the GPU, using a pixel
shader.

I think I have a clue on how to do this: in the initialization process
I will create a texture containing, for each pixe, the destination of
that pixel in the undistorted image (or probably just the offsets in
the x and y directions). I will then pass this texture to the pixel
shader and use it to sample the right pixel.

Thanks for your reply anyway.

.



Relevant Pages

  • Re: data-flow / interaction of application, vertex-shaders, pixel-shaders, cull/clip/pro
    ... >> the pixel shader apply the appropriate texture-images to triangles? ... > pixel shader samples the texture, the right texel is fetched, ... I transform to camera coordinates to cull all backface triangles ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: depth peeling not quite working
    ... in a texture register. ... Those are the values I use in the pixel ... reference depth texture will render in this pass ... This means, that in the pixel shader, you interpret the red channel of a ...
    (microsoft.public.win32.programmer.directx.graphics)
  • text2D() and pixel coords instead of [0,1] (to perform a convolution)?
    ... I have a texture that I'm rendering to a rectangular surface. ... need to evaluate the surrounding pixels of the pixel currently processed ... by the pixel shader. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Performance question
    ... is about texture, how a texture is applied, how it interacts ... I need all 8 bits of data for grid location in order to determine ... Storing 1 bit per pixel means your grid takes up 2Mbytes, ... You'd store the state of the grid as a BDD proposition. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Texture sampler aliasing problem
    ... Directly Mapping Texels to Pixels ... that texels map directly to on-screen pixels. ... application that needs to display text within a texture on an object ... Because the Microsoft® Direct3D® pixel and texture sampling rules are ...
    (microsoft.public.win32.programmer.directx.graphics)