baidut / OpenVehicleVision

An opensource lib. for vehicle vision applications (written by MATLAB), lane marking detection, road segmentation
135 stars 59 forks source link

hoiem2007ijcv #59

Closed baidut closed 8 years ago

baidut commented 8 years ago

内部超像素分割是通过调用exe实现的,所以segment 需要在系统path下

function imsegs = im2superpixels(im)

prefix = num2str(floor(rand(1)*10000000));
fn1 = ['./tmpim' prefix '.ppm'];
fn2 = ['./tmpimsp' prefix '.ppm'];
segcmd = '/home/dhoiem/cmu/tools/superpixelsFH/segment 0.8 100 100';

imwrite(im, fn1);
system([segcmd ' ' fn1 ' ' fn2]);
imsegs = processSuperpixelImage(fn2);

delete(fn1);
delete(fn2);

修改此处segcmd

需要mex编译

APPgetLabeledImage2 首先去除image中的s分量,从而成为一个黑白图 然后做彩色的label,不同颜色不同类别,颜色的深浅(饱和度)代表置信度 image