# Simple quiestion about slices and node that i forgot

i need to do a texture match between 2 textures
by using luma it will work, so i will try with the pipet node

im doing a grid in each texture of 3x3 ( but it will be much much biguer latter ) and i can get the spread of each of them in the same posicion, and substract them. but i need to get a % of the match.

and on the other hand, i would like to know where is the “coincidence”, i can do it by creating a new texture from the subtraction of texture a and b.

i left an example with a simple description of what im looking for

and 1 more question, im looking a node that i forgot the name, it was like an LFO, if the imput pin is 0, the output its 0, if the imput pin is .33 the output will be increasig like .33 per second at a constant speed, if you increase that value the output will be increasing faster. and it also works with negative values. it behaves like a dc motor, changing the current will increase the speed.

Tnnks!!

matches.v4p (19.2 kB)

integrate is the node your looking for I think…

Yeahh that it!! thank you catweasel.
regarding the other question what i need its this…

• how can i add all the values of a spread ?
example i have “2”,"3,“6” , as a spread of 3 slices, and i want to get only 1 value of “10”

and

how can i get the slice number of the maximun value ?
“2”,“3,“6”,“11”,”-20" what i need is to get the value “5” because its the maximun value

• (value Spectral) will do the first problem.

“2”,“3,“6”,“11”,”-20" has a max of 11 I hope ;)

You can use the Sort node, to sort your spread, and than use CDR or CAR to get the first or the last slice. (lowest or highest value). Or just use a node called Bounds.

edit: Or do you need the slice count? Just use Count than.

Grat west, i was able to finish another project just by that “+ (value Spectral)”

last question :) … check out the example file
im sure that the answer its bounds but i can´t figure it out how to use it in this problem

max_slice.v4p (9.6 kB)

The magical Select (value) Node will do that.

But you want a 3 because the 4th slice is slice 3.
The first slice is slice 0. vvvv starts counting from 0.

But what you wanted was a simple Sort and CDR.

Check this link for a different example on Slect.
westtricks#get your values back after a boolean operation.

And here for the Sort trick I used.

And than read the other tricks ;)

West you are the men! ;)

Tnks a lot for your help, as soon as i finish the project i will show you what i made with this :)

Hi vjc4,

once I did this patch as an attempt for shader-run rotation detection.
I thought it might be in your direction.

RotationPic.zip (12.7 kB)

West and Frank thank you for the reply, im still fgthing with slices :@

The idea is to do a multi touch kinect screen, without skeleton ( because you need to get the “pose” , so that wont work. I made a patch to simulate the kinect camera… what i need is to get the X and Y of the brigthers pixel of that matrix, i was able to get it in X using the CAR node as you told me
but it will be great to use the bound nodes to get an average of the group of the bighers pixels.

check this