컴퓨터 비젼(Computer Vision)
-
Conditional Random Field컴퓨터 비젼(Computer Vision) 2021. 12. 8. 17:36
CrfRnn Conditional Random Field(CRF, 조건부 무작위장) 이란.. 멀까요? https://viesure.io/improving-performance-of-image-segmentation-with-conditional-random-fields-crf/ viesure | Improving Performance of Image Segmentation with Conditional Random Fields (CRF) 14 May Improving Performance of Image Segmentation with Conditional Random Fields (CRF) Posted at 16:16h in Tech by ihorshylo In a modern world of theo..
-
의용 영상에서의 히스토그램 균일화 (1)컴퓨터 비젼(Computer Vision) 2021. 11. 18. 10:37
영상에서 자주 발생하지 않는 그레이레벨들의 합과 전체적인 변환은 의용 영상에서는 중대한 문제가 도리 수 있다. 이 문제를 해결하기 위하여 히스토그램 균일화를 국부적으로 시도한 적이 있었고, 이것을 국부 영역 히스토그램 균일화(local-area histogram equalization)라고 한다.움직이는 사각형 윈도우 중앙에 있는 화소가 중심이 되어 화소들의 히스토그램이 처리되며, 처리가 모든 화소에 대하여 이뤄진다. 이러한 방법은 계산적 비용이 크며, 이동하는 윈도우의 인공적인 사각형 모양으로 인하여 아티팩트를 유발할 수도 있다. 적응적 국부영역 히스토그램 균일화(adaptive local area equalization)도 또한 사용되었으며, 여기서 특정 화소를 위한 윈도우가 특정한 모양이나 크기로 ..
-
Tensorflow_io로 dicom 데이터 다루기컴퓨터 비젼(Computer Vision) 2021. 8. 9. 23:48
pydicom라이브러리를 사용하지 않고 Dicom 파일을 읽고 시각화해보자. 사용 데이터: https://www.kaggle.com/c/rsna-miccai-brain-tumor-radiogenomic-classification/data 1. tensorflow-io 설치 !pip install -q tensorflow-io 2. 필수 라이브러리 호출 import matplotlib.pyplot as plt import numpy as np import tensorflow as tf import tensorflow_io as tfio import glob import os 3. 파일 읽어오기 train_dir = '../input/rsna-miccai-brain-tumor-radiogenomic-clas..
-
이미지에서 black border 제거하기컴퓨터 비젼(Computer Vision) 2021. 8. 2. 09:31
image = read_img(i) temp_image = image threshold = 0 rows = np.where(np.max(temp_image, 0) > threshold)[0] if rows.size: cols = np.where(np.max(temp_image, 1)>threshold)[0] image = image[cols[0]:cols[-1]+1, rows[0]:rows[-1]+1] else: image = image[:1, :1] return image threshold를 통해 허용 가능한 pixel 조절 가능