github链接:np-csu/SLIC-superpixel
void SLIC::GenerateSuperpixels(cv::Mat& img, UINT numSuperpixels)
Perform SLIC algorithm on the given image with the given number of superpixels.
cv::Mat SLIC::GetImgWithContours(cv::Scalar color)
Get the result image with contours on the given color.
int* SLIC::GetLabel()
Get label on each pixel which shows the number of superpixel it belongs to.
original image
![]()
200 superpixels
![]()
500 superpixels
![]()
1
47jm9ozp Mar 6, 2015
颜色空间转换可以直接用opencv内部的吧……
|
5
zerh925 Mar 6, 2015
如果是边缘没有这么明显的图片呢
|
8
answer42 OP |
9
47jm9ozp Mar 6, 2015
@answer42 转一下就好……
C++: Mat::Mat(Size size, int type, void* data, size_t step=AUTO_STEP) opencv自带的一些函数有各种优化,一般我都直接用,就不自己造轮子了。。 |
10
Valyrian Mar 6, 2015
computer vision课作业写过。。。
|
11
47jm9ozp Mar 6, 2015
cv相关专业但是不知道为啥一直在做嵌入式学术上一事无成的飘过。。
|
12
theoractice Mar 6, 2015
看起来很好玩。想问下这个有啥应用呢?
|
13
shakoon Mar 6, 2015
看着很不错呢,楼主加油!
|
14
jimmy66 Mar 6, 2015
这学期在学,先star了
|
16
answer42 OP |
17
answer42 OP |
21
ywisax Mar 7, 2015
必须star,太牛了
|
22
answer42 OP |