diff --git a/ReadRawData/pyScripts/Merge.py b/ReadRawData/pyScripts/Merge.py index 29dfb5add392a899c282c3db625bd9eb21dd3791..7b8f03d90aea4acb8d4434cdb75598c47756db9a 100644 --- a/ReadRawData/pyScripts/Merge.py +++ b/ReadRawData/pyScripts/Merge.py @@ -63,10 +63,10 @@ def extract_sample(arry,x,y): ''' plot the given sample ''' - fp_sample = arry[0:64,0:64] + fp_sample = arry[0:120,0:120] print(fp_sample) - fp_image = np.reshape(fp_sample, (64,64)) + fp_image = np.reshape(fp_sample, (120, 120)) print(fp_image.shape) @@ -80,7 +80,8 @@ def extract_sample(arry,x,y): skeleton = skeletonize(fp_enhance_image) skeleton = np.array(skeleton, dtype=np.uint8) skeleton = removedot(skeleton) - + + print(skeleton) plt.subplot(x,2,y) plt.imshow(skeleton, 'gray') @@ -98,6 +99,7 @@ def plot_samples(fp_image, x, y): skeleton = np.array(skeleton, dtype=np.uint8) skeleton = removedot(skeleton) + print(skeleton) plt.subplot(x,4,y) plt.imshow(skeleton, 'gray') # plt.show()