imgviz.nchannel2rgb¶
- imgviz.nchannel2rgb(nchannel, dtype=<class 'numpy.uint8'>, pca=None)[source]¶
Convert nchannel array to rgb by PCA.
- Parameters:
nchannel (numpy.ndarray, (H, W, C), float) – N channel image.
dtype (numpy.dtype) – Dtype (default: numpy.uint8).
pca (sklearn.decomposition.PCA) – PCA.
- Returns:
dst – Visualized image.
- Return type:
numpy.ndarray, (H, W, 3), numpy.uint8