包含选定的图像处理功能
pimp的Python项目详细描述
pimpy是一个python包,包含一些选定的图像处理函数。
安装
从PIP安装:
python -m pip install pimpy
概述:
目前,pimpy由模块color_cluster、smoothing和transformations组成。这个 color_cluster和smoothing模块只是一些numpy和scipy函数的方便包装。
功能列表:
color_cluster.reduce_image:执行k-means聚类以查找n维中最显著的颜色 形象。
color_cluster.find_nearest_colors:将n维图像的每种颜色映射到给定列表的最接近颜色。
color_cluster.extract_colors:查找n维图像的所有唯一颜色值并返回唯一颜色 值和包含颜色索引而不是颜色值的图像。
smoothing.gaussian_smoothing:对n维彩色图像执行高斯平滑。
transformations.create_edge_image:从给定的灰色或rgb图像计算边缘图像。
transformations.find_poles_of_inaccessibility_of_edge_image:返回包含最远点的a列表 远离边缘。