import numpy as np def hist_match ( source , template ): """ Adjust the pixel values of a grayscale image such that its histogram matches that of a target image Arguments: ----------- source: np.ndarray Image to transform; the histogram is computed over the flattened array template: np.ndarray Template image; can have different dimensions to source Returns: ----------- matched: np.ndarray The transformed output image """ oldshape = source . shape source = source . ravel () template = template . ravel () # get the set of unique pixel values and their corresponding indices and # counts s_values , bin_idx , s_counts = np . unique ( source , return_inverse = True , return_counts = True ) t_values , t_counts = np . unique ( template , return_counts = True ) ...
sklearn tsne by ipynb, iris & mint
답글삭제https://github.com/danielfrg/tsne.git
ofxTSNE by XCode
답글삭제https://github.com/thomwolf/ofxHighDim.git
ImageNet TL ConvNet 으로 분류해서 티스니 해주는 소스 !
삭제Get ofxCcv
삭제run the setup_ccv script to download the trained convnet.
sh setup_ccv.sh
Then you need to populate a folder called 'images' inside your data folder. Be careful to use small-sized images because the entire directory will be loaded into memory. I've provided a script which downloads 20 images each from 31 categories in Caltech-256. If you'd like to download those, run:
python download_images.py