About-Siamese-Network shows the mnist siamese network how to work.
Diterminating two CT images of head is whether a same person. I have two ways to solve this problem, first is Siamese Network, and second is extracting feature vector and computing a cosine distance from a classic classfication network with an additional center_loss function.