Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4a73dcb

Browse files
image prep active contour update
1 parent aa52766 commit 4a73dcb

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

‎.ipynb_checkpoints/Image_preperation-checkpoint.ipynb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
"\n",
3232
"def calc_external_img_active_contour(img): \n",
3333
"\n",
34+
" median = median(img)\n",
35+
" contrast = contrast_stretching(median)\n",
36+
" ext_img = canny(contrast)\n",
37+
"\n",
38+
" return ext_img\n",
39+
"\n",
40+
"def calc_external_img_active_contour2(img): \n",
41+
"\n",
3442
" img = np.array(img, dtype=np.uint16)\n",
3543
" kx = np.array([[-1,0,1],[-2,0,2],[-1,0,1]])\n",
3644
" Gx = cv2.filter2D(img,-1,kx)\n",

‎ActiveShapeModel.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@
6060
"\n",
6161
"def preperation(radiograph, tooth_variations):\n",
6262
" \n",
63-
"# median = prep.median_filter(radiograph)\n",
63+
" #median = prep.median_filter(radiograph)\n",
6464
"# edge_img = prep.edge_detection_low(median)\n",
65+
"\n",
6566
" edge_img = prep.calc_external_img_active_contour(radiograph)\n",
6667
" pca_tooth = PCA.PCA_analysis(tooth_variations, None)\n",
6768
" \n",

‎Image_preperation.ipynb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
"\n",
3232
"def calc_external_img_active_contour(img): \n",
3333
"\n",
34+
" median = median(img)\n",
35+
" contrast = contrast_stretching(median)\n",
36+
" ext_img = canny(contrast)\n",
37+
"\n",
38+
" return ext_img\n",
39+
"\n",
40+
"def calc_external_img_active_contour2(img): \n",
41+
"\n",
3442
" img = np.array(img, dtype=np.uint16)\n",
3543
" kx = np.array([[-1,0,1],[-2,0,2],[-1,0,1]])\n",
3644
" Gx = cv2.filter2D(img,-1,kx)\n",

‎Image_preperation.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131

3232
def calc_external_img_active_contour(img):
3333

34+
median = median(img)
35+
contrast = contrast_stretching(median)
36+
ext_img = canny(contrast)
37+
38+
return ext_img
39+
40+
def calc_external_img_active_contour2(img):
41+
3442
img = np.array(img, dtype=np.uint16)
3543
kx = np.array([[-1,0,1],[-2,0,2],[-1,0,1]])
3644
Gx = cv2.filter2D(img,-1,kx)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /