Skip to content

Instantly share code, notes, and snippets.

View asanakoy's full-sized avatar

Artsiom asanakoy

View GitHub Profile
@asanakoy
asanakoy / image_scatter.py
Created September 26, 2016 15:03 — forked from lukemetz/image_scatter.py
Image tsne scatter plot
from tsne import bh_sne
import numpy as np
from skimage.transform import resize
from matplotlib import pyplot as plt
def gray_to_color(img):
if len(img.shape) == 2:
img = np.dstack((img, img, img))
return img