How to make intera personal and extra personal pairs for face verification in matlab

2 vues (au cours des 30 derniers jours)
sweety
sweety le 2 Avr 2015
Modifié(e) : sweety le 3 Avr 2015
I have data like this ( In my data I have class associated with each row like if one row is for first person then class is 1,for second person class 2 for identification)
> 1 3 5 6 first person
> 4 5 8 9 first person
> 9 78 34 7 first person
>10 15 25 1 second person
>4 7 2 20 second person
Now I want to find out intra personal pairs that is array pair of same person eg. for first person pairs will be:-
>1 3 5 6 first pair
> 4 5 8 9
>1 3 5 6 second pair
> 9 78 34 7
> 4 5 8 9 third pair
> 9 78 34 7
>now for second person possible intra pairs(only one pair):-
>10 15 25 1 first pair
>4 7 2 20
>For extra personal pairs(pair with different person):-
>For first person possible extra personal pairs:-
> 1 3 5 6 (first pair)
>10 15 25 1
>1 3 5 6(second pair)
>4 7 2 20
> 4 5 8 9 (3rd pair)
>10 15 25 1
>4 5 8 9 (4rth pair)
>4 7 2 20
>9 78 34 7 (5th pair)
>10 15 25 1
>9 78 34 7 (6th pair)
>4 7 2 20
>similarly extra pairs can be created for second person
>And I want to give these pairs one by one into function like:-
> function[x]=fv(g1,g2) % gi and g2 are two array from one pair
>Does anyone know an elegant solution to this? please help... Thanks...

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by