Can anyone explain this code line of MATLAB with unix command & what it does? -
code: there way run code on windows inspite of having unix command?
function [region_borders,mult,as_idx,color_asign,iq_segmt] = segment(iq,ext3_sigma,ext3_k,ext3_min,segpath) imwrite(iq,'tempquery.ppm','ppm'); %%this line unix([segpath ' ' num2str(ext3_sigma),' ',num2str(ext3_k),' ',num2str(ext3_min),' tempquery.ppm tempsegout.ppm']); iq_segmt = imread('tempsegout.ppm'); as_idx=0; .................
yes. use system
instead. unix
executes unix system commands. system
more general command operating system independent... so:
system([segpath ' ' num2str(ext3_sigma),' ',num2str(ext3_k),' ',num2str(ext3_min),' tempquery.ppm tempsegout.ppm']);
however, can't tell because segpath
, ext3_sigma
, ext3_k
, ext3_min
aren't explained in context. if provided line of code calling segment
function.
Comments
Post a Comment