Forums > Jitter

spatial map for jit.repos from a picture?

January 11, 2011 | 12:57 pm

Hi all,
I’d like to create a spatial map from a picture to use as a repositioning map for another picture:
I’m trying to use this method to move the values of the cells of a BW picture to the the cells of a second picture.
For example if I have a circle in the left side of the matrix in the first picture and a circle in the right side of the matrix in the second picture then I’d like to be able to have the values of the cells move from one spot to the other.

I think jit.repos should be the way to do it, using the second matrix as a map for the first.

Do you think this is a sane path to follow?

If it’s the right path then I should convert the second matrix to a 2 plane one, what is the best way of doing this?

Thanks a lot for the moment

nicco


January 11, 2011 | 1:57 pm

ok, quite stupid of me:
I guess I can convert a picture to 2 planes by passing it into a 2 plane matrix..
Duh..


January 11, 2011 | 2:01 pm

You could also check out jit.gl.imageunit in combination with the effect ‘Displacement Distortion’.


January 11, 2011 | 2:33 pm

Thanks for the reply, Brecht.

Did you use this effect for a similar task?

thanks again


January 11, 2011 | 2:42 pm

I used it to create a displacement of a source image by the input from a camera. A ghostlike ripple, very subtle, but nothing like what you’re trying to do I think.


January 12, 2011 | 1:29 pm

Thanks a lot,
tried to use Displacement Distortion process included in the jit.gl.imageunit but cannot get to go fully to the second image, I guess this is not it’s intended purpose, looks like it’s more suited to the kind of use you were having.

I tried jit.repos but somehow I have trouble moving the cells from one place to the other..

Guess i have to think harder..

Thanks a lot though

nicco


Viewing 6 posts - 1 through 6 (of 6 total)