This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Sep 02 22:10:33 2015 | |
@author: ryousuke | |
""" | |
import numpy as np | |
import math |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Aug 29 14:48:11 2015 | |
@author: ryousuke | |
""" | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu May 21 14:28:05 2015 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jul 15 14:12:54 2015 | |
@author: mks | |
"""# -*- coding: utf-8 -*- | |
""" | |
Spyder Editor | |
This is a temporary script file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jul 15 14:12:54 2015 | |
@author: mks | |
"""# -*- coding: utf-8 -*- | |
""" | |
Spyder Editor | |
This is a temporary script file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Aug 04 15:24:55 2015 | |
@author: ryousuke | |
""" | |
import numpy | |
import cv2 | |
import glob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Oct 04 20:53:36 2016 | |
@author: ryousuke | |
""" | |
import datetime | |
from time import sleep | |
import os | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Created on Fri May 01 19:17:23 2015 | |
@author: jyoshida-sci | |
""" | |
import cv2 | |
import numpy as np | |
import itertools | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Created on Wed Apr 15 09:27:47 2015 | |
Displaying all jpg-imgs in a directory in 7 ways; normal,R,G,B,H,S and V-channel | |
画像の表示のサンプル | |
指定したファイル内にある画像を読み込み、その画像が空であるのか、空でないのかを判断するコードである。 | |
①指定したファイルの中にある画像を読み込み、その画像の縦と横の大きさを取得することで、読み込んだ画像の総ピクセル数を求める。 | |
②読み込んだ画像を、私が「青色」と指定した範囲を超えた数値を持つピクセルを黒くし、青色の範囲にあるピクセルを白く表示するmaskを作成する。 | |
③作成したmaskの白ピクセル数をカウントし、画像の総ピクセル数に対するカウントした白ピクセル数の割合を求める。 | |
④その割合が、設定した閾値以上であったら『空』、以下であったら『not空や--------』とpython画面上に表示するようにした。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon May 11 09:39:59 2015 | |
基本的なコードは countingPixel.py と同じである。 | |
このコードとcountingPixel.pyの違いは、複数のカーネルサイズ、二値化閾値を指定することで、画像処理の度に数値を変更するのではなく、 | |
試したい閾値を一度に試すことができる点である。 | |
それ以外はcountingPixel.pyと違いはない。 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Apr 21 16:36:05 2015 | |
@author: ryousuke | |
""" | |
""" | |
Created on Wed Apr 15 10:42:49 2015 |