Package marvin.image

Examples of marvin.image.MarvinImage.fillRect()


    for(int x=0; x<cornernessMap.length; x++){
      for(int y=0; y<cornernessMap[0].length; y++){
        // Is it a corner?
        if(cornernessMap[x][y] > 0){
          rsize = Math.min(Math.min(Math.min(x, rectSize), Math.min(cornernessMap.length-x, rectSize)), Math.min(Math.min(y, rectSize), Math.min(cornernessMap[0].length-y, rectSize)));
          ret.fillRect(x, y, rsize, rsize, Color.red);
        }       
      }
    }
   
    return ret;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.