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
"""Cirrus OCT ROI segmentation. | |
Author: Jian Shi | |
Email: [email protected] | |
""" | |
import numpy as np | |
import pandas as pd | |
import os | |
import cv2 |
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
""" Visualize 3D objects in a video manner. | |
Current config is for Cirrus OCT only. | |
Author: Jian Shi | |
Email: [email protected] | |
""" | |
from __future__ import absolute_import | |
from __future__ import division | |
from __future__ import print_function |
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
""" | |
Image extractor for Heidelberg OCT B-SCANS. | |
Author: Jian Shi | |
Date created: 28/08/2020 | |
""" | |
from multiprocessing import Pool | |
import matplotlib.pyplot as plt | |
import pydicom |
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
import types | |
import numpy as np | |
def test_tile(x, multiplier): | |
x = np.array(x) | |
if isinstance(multiplier, list): | |
raise ValueError("multiplier must be a List or numpy array") | |
multiplier = np.array(multiplier) | |
if len(multiplier.shape) > 1: |
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
// Enable logging as: | |
// if (WirelessLogging.DEBUG_MODE){ | |
// WirelessLogging.shared.initRemoteLogging() | |
// } | |
// Logging as: | |
// WirelessLogging.log(message: "Success", log: "sensor", type: .debug) | |
import Foundation | |
import os.log |
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
''' | |
This converter is used to convert hdf5 file to TFRecords. | |
Dataset used: | |
This is designed for the point cloud hdf5 data of pointnet, | |
which can be downloaded from https://github.com/charlesq34/pointnet/sem_seg | |
The sample data shape is | |
h5py { | |
'data': (1000, 4096, 9), # (number_of_data, points, channels) |
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
import numpy as np | |
import cv2 | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
''' | |
Read in image | |
''' | |
img = cv2.imread('./fruit_img.jpg', cv2.IMREAD_COLOR) | |
gray_img = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY) # use black and white for demostration |
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
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |