Skip to content
Snippets Groups Projects
Commit 3ec39e67 authored by Manuel Günther's avatar Manuel Günther
Browse files

Disabled automatic plot display since it required an X connection; removed some temporary code.

parent 7924d4c5
No related branches found
No related tags found
No related merge requests found
......@@ -220,6 +220,8 @@ def main():
# save plot to file
pyplot.savefig("dct_ubm.png")
# show ROC curve
pyplot.show()
# show ROC curve.
# enable it if you like. This will open a window and display the ROC curve
# pyplot.show()
......@@ -84,16 +84,7 @@ def main():
print "Training PCA machine"
pca_machine = train(training_images)
# extract the first eigenvector
projection_matrix = pca_machine.weights
eigen_image = projection_matrix[:,0]
# reshape the eigenvector to the right image resolution
eigen_image.shape = (112,92)
# show the first eigenface
pyplot.imshow(eigen_image, cmap = 'gray')
pyplot.show()
#####################################################################
### extract eigenface features of model and probe images
......@@ -152,6 +143,8 @@ def main():
# save plot to file
pyplot.savefig("eigenface.png")
# show ROC curve
pyplot.show()
# show ROC curve.
# enable it if you like. This will open a window and display the ROC curve
# pyplot.show()
......@@ -131,5 +131,8 @@ def main():
# save plot to file
pyplot.savefig("gabor_phase.png")
# show ROC curve
pyplot.show()
# show ROC curve.
# enable it if you like. This will open a window and display the ROC curve
# pyplot.show()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment