Ask Your Question

patofis's profile - activity

2015-02-08 09:01:09 -0500 received badge  Nice Answer (source)
2015-02-08 05:56:22 -0500 received badge  Teacher (source)
2015-02-08 05:23:34 -0500 answered a question fatal error: opencv2/highgui/highgui.hpp: No such file or directory

you probably need to include the folder upper than opencv2 on your include list.

2015-02-07 05:37:34 -0500 received badge  Enthusiast
2015-02-06 10:32:02 -0500 asked a question Remap function too crisp on downsampling

I have a image (the colored matrix) that I wanna conform into a given space where each pixel is the position in the original image (the greeninsh-yellowings one) and I put there the result.

The concept seems to work, in fact it works really nice on magnification but pretty poor on downsampling (see the side of the box) making this on opengl / directx is easy since they take care about anisotropic filtering of the texture etc but OpenCV fails on that (please open the image in full size)

Any idea for improve this?

Regards.

image description

2015-02-05 02:29:23 -0500 received badge  Editor (source)
2015-02-04 06:46:32 -0500 received badge  Student (source)
2015-02-04 05:20:48 -0500 asked a question Place texture using a given UV Buffer

Hi to every one, this is my first try on OpenCV and seems to be awesome, but now I'm facing to the first problem I cannot solve looking at the help manual or the forums.

I wanna change a texture by reprojecting it like in this image:

image description

That's trivial on OpenGL shaders since they compute by their own the derivatives etc, so you can just read the pixel value of the uv buffer and read the pixel placed at that x,y coordinates, since OpenGL takes care of selecting the mipmap, make a good mixing for shallow angles etc.

Meanwhile I only manage to read the pixel on OpenCV or at most I can blend it with the contiguous one.

EDIT maybe my question was too ambiguous, I was asking about how to make this on OpenCV without OpenGL calls.

Using OpenGL I should draw a simple rectangle and use as fragmented shader this pseudo-code:

float2 newUV=texture(UVgbufferTex,gl_TexCoord[0]).xy; float3 finalcolor=texture(DIFFgbufferTex,newUV);

return float4(finalcolor,0);

OpenGL takes care about selecting the mipmap level, the anisotropic filtering etc, meanwhile if I make this on OpenCV I get a single pixel for finalcolor so my result is crisp.

Regards, and thank you in advance.