Similarity calculation in copy move forgery detection

Hi everyone, i am having an cell array of 241x241. In that every cell is of 16x16 double. I want to find Euclidean distance between these cells only if abs[index(u)-index(v)] is less than or equal to Offset threshold. I am not getting how to code it in matlab. Any help in this will be greatly appreciated.

9 comentarios

Rik
Rik el 29 de Sept. de 2017
What do you mean with Euclidean distance between cells? Can you provide small example input and desired result?
Have a read here and here. It will greatly improve your chances of getting an answer.
@rik, Euclidean distance between cells means between blocks of that cell array.
Rik
Rik el 29 de Sept. de 2017
Editada: Rik el 29 de Sept. de 2017
An array index is not necessarily a coordinate, which is why I asked the question. Your reply isn't really answering the question, but I think we can conclude from that that you mean the indices can be treated as coordinates.
As for my second question: can you give an example of what you mean with abs(index(u)-index(v))?
Another question: should all cells be compared with all other cells? That would need 241*241*240*240=3.3 million comparisons, so if that is the case, try finding a vectorized solution.
@rik, u and v are blocks inside cell array. abs means absolute value. The answer to your last question is that to avoid compairing all cells with all other cells we have to use absolute value condition.
Rik
Rik el 2 de Oct. de 2017
You will need to provide an example of what you want. If u and v are both inside each cell, you might be able to use cellfun to generate a binary map of which cells to include in your distance measurement.
@rik....Can you help me with coding.
Rik
Rik el 2 de Oct. de 2017
@charu, I might, but why don't you post a question of your own? In the past you have received help when you explained your question clear enough.
PS I don't think it is very polite to ask help in this way on someone else's question.
Jan
Jan el 2 de Oct. de 2017
The Euclid distance is defined between vectors. Your elements are matrices, therefore it is still not clear, what you want to calculate.
Hi John, i have an column vector of size 58081x1. I want to find Euclidean distance between them. Any help in this will be highly appreciated. Thanks in advance.

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 29 de Sept. de 2017

Cerrada:

el 3 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by