matlab function "m = size(X,dim)" equivalent in opencv -
i new matlab, can me find equivalent opencv method matlab method "m = size(x,dim)"". better if know does? online documents not helpful little knowledge. thanks
update:
what role of dim "m = size(x,dim)" , how works. image(x) size of 200 * 200 , if pass dim=1, m=1 in matlab , if pass dim =2 , 40. can pl explain.
code:
image = 'd:\proposals\others\test_some_title1.jpg' top=size(image,2)
as code:
image = 'd:\proposals\others\test_some_title1.jpg' top=size(image,2)
image
here not image. string containing file name (which happens image, size
function doesn't know that). string indeed 40 characters long, hence result. read in image, use imread
.
also, image
function in matlab. if make variable called image
stop using function (this source of lot of matlab errors).
Comments
Post a Comment