Re: [SIP-devel] pb with mogrify -draw
Advanced image processing toolbox for Scilab on Unix/Linux/Mac OS
Status: Beta
Brought to you by:
ricardofabbri
From: Ricardo F. <rf...@if...> - 2003-09-04 12:08:42
|
On Sun, 31 Aug 2003, DRUEL Jocelyn wrote: > Hi, > Did anybody succed in using the function draw of mogrify within SIP ? > > a=gray_imread('ararauna.jpg'); > b=mogrify(a,'-draw circle 10,10 15,15') > > The answer is "Non conforming primitive definition". SIP's mogrify parsing of mogrify's arguments must be improved. In the command line, ImageMagick would be used like this: convert -draw 'circle 10,10 15,15' ararauna.jpg ararauna2.jpg As you see, parameter "circle 10,10 15,15" is passed as a single string to the program. I don't know exactly how to solve this. Maybe SIP's mogrify should have one parameter for each commandline argument, like this: b=mogrify('arara.jpg','-draw','circle 10,10 15,15'); This should be easy to do. If everybody agrees I'll code it as soon as I can. thanks for reporting, Ricardo. -- Ricardo Fabbri, Cybernetic Vision Research Group, USP, Brazil. www.rfabbri.kit.net |