Ok, in Deiner Version von SIP gibt es kein mogrify.
Deshalb habe ich Dir eine neue Version von drwacross ohne mogrify gemacht:
Code:function pic_out=drawcross(pic,x,y) // // draw a cross in a picture // // // v1.1 21.2.2006 stochri // // // Verion History // // v1.0 using mogrify // v1.1 without using mogrify a=4; b=30; rectangle=ones(b,a); y1=y-b/2; x1=x-a/2; //pic_out=pic; pic(y1:y1+b-1,x1:x1+a-1,1)=rectangle-1; pic(y1:y1+b-1,x1:x1+a-1,2)=rectangle-1; pic(y1:y1+b-1,x1:x1+a-1,3)=rectangle; a=30; b=4; rectangle=ones(b,a); y1=y-b/2; x1=x-a/2; pic(y1:y1+b-1,x1:x1+a-1,1)=rectangle-1; pic(y1:y1+b-1,x1:x1+a-1,2)=rectangle-1; pic(y1:y1+b-1,x1:x1+a-1,3)=rectangle; pic_out=pic; endfunction // // ------------------------------------------------------------------------- // This file ist made for scilab the free mathematical toolbox // // Copyright (C) 2005 stochri // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // ------------------------------------------------------------------------- //







Zitieren

Lesezeichen