From f7e1cf04f791898737bc15b0eb437abc2c5d9305 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Wed, 13 Sep 2017 10:41:14 +0100 Subject: cleaned up code --- src/Python/test_regularizers.py | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'src') diff --git a/src/Python/test_regularizers.py b/src/Python/test_regularizers.py index d2fbca6..665a077 100644 --- a/src/Python/test_regularizers.py +++ b/src/Python/test_regularizers.py @@ -76,7 +76,7 @@ fig = plt.figure() a=fig.add_subplot(2,3,1) a.set_title('noise') -imgplot = plt.imshow(u0) +imgplot = plt.imshow(u0,cmap="gray") reg_output = [] ############################################################################## @@ -134,20 +134,6 @@ reg_output.append(out2) a=fig.add_subplot(2,3,3) -textstr = out2[-1] - -# these are matplotlib.patch.Patch properties -props = dict(boxstyle='round', facecolor='wheat', alpha=0.5) -out2 = Regularizer.PatchBased_Regul(input=u0, regularization_parameter=0.05, - searching_window_ratio=3, - similarity_window_ratio=1, - PB_filtering_parameter=0.08) -pars = out2[-2] -reg_output.append(out2) - -a=fig.add_subplot(2,3,5) - - textstr = out2[-1] # these are matplotlib.patch.Patch properties @@ -176,15 +162,6 @@ pars = out2[-2] reg_output.append(out2) a=fig.add_subplot(2,3,4) -out2 = Regularizer.PatchBased_Regul(input=u0, regularization_parameter=0.05, - searching_window_ratio=3, - similarity_window_ratio=1, - PB_filtering_parameter=0.08) -pars = out2[-2] -reg_output.append(out2) - -a=fig.add_subplot(2,3,5) - textstr = out2[-1] @@ -195,13 +172,6 @@ a.text(0.05, 0.95, textstr, transform=a.transAxes, fontsize=14, verticalalignment='top', bbox=props) imgplot = plt.imshow(reg_output[-1][0],cmap="gray") -textstr = out2[-1] -# these are matplotlib.patch.Patch properties -props = dict(boxstyle='round', facecolor='wheat', alpha=0.5) -# place a text box in upper left in axes coords -a.text(0.05, 0.95, textstr, transform=a.transAxes, fontsize=14, - verticalalignment='top', bbox=props) -imgplot = plt.imshow(reg_output[-1][0],cmap="gray") # ###################### PatchBased_Regul ######################################### # # Quick 2D denoising example in Matlab: -- cgit v1.2.3