MATLAB vision.ShapeInserter() function gives warning about CustomBorderColor attribute -


i trying create 2 shapes inserting video frame. whenever

bluebox = vision.shapeinserter('shape','rectangles',...                           'bordercolor','custom',...                           'custombordercolor',uint8([0 0 255]));  greencircle = vision.shapeinserter('shape','circles',...                           'bordercolor','custom',...                           'fill', true,...                           'custombordercolor',uint8([200 255 50])); 

whenever run script matlab warns me custombordercolor property. strange point gives warning message greencircle not bluebox.

warning: custombordercolor property not relevant in configuration of system object.

in c:\program files\matlab\r2012a\toolbox\matlab\system+matlab+system\pvparse.p>pvparse @ 25 in c:\program files\matlab\r2012a\toolbox\matlab\system+matlab+system\systemprop.p>systemprop.parseinputs @ 639 in c:\program files\matlab\r2012a\toolbox\matlab\system+matlab+system\systemprop.p>systemprop.setproperties @ 138 in c:\program files\matlab\r2012a\toolbox\vision\vision+vision\shapeinserter.p>shapeinserter.shapeinserter @ 254

then tried change code following:

greencircle =vision.shapeinserter('shape','circles', ...                                   'fill', true, ...                                   'fillcolor', 'custom', ...                                   'customfillcolor', uint8([0 1 3]), ...                                   'bordercolor','custom', ...                                   'custombordercolor',uint8([200 255 50]));  

but still getting warning message:

warning: custombordercolor property not relevant in configuration of system object.

in c:\program files\matlab\r2012a\toolbox\matlab\system+matlab+system\pvparse.p>pvparse @ 25 in c:\program files\matlab\r2012a\toolbox\matlab\system+matlab+system\systemprop.p>systemprop.parseinputs @ 639 in c:\program files\matlab\r2012a\toolbox\matlab\system+matlab+system\systemprop.p>systemprop.setproperties @ 138 in c:\program files\matlab\r2012a\toolbox\vision\vision+vision\shapeinserter.p>shapeinserter.shapeinserter @ 254

what reason that?

you getting warning because have 'fill' set true greencircle. can use 'fillcolor' , 'customfillcolor' set color of filled circle.

also, if have matlab version r2014a or later can use insertshape function instead of vision.shapeinserter. function easier use.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -