All Downloads are FREE. Search and download functionalities are using the official Maven repository.

marvin.util.MarvinImageUtils Maven / Gradle / Ivy

The newest version!
package marvin.util;

import java.awt.Color;

import marvin.image.MarvinImage;

public class MarvinImageUtils {

	public static void showCorners(MarvinImage imageIn, MarvinImage imageOut, int[][] cornernessMap, int rectSize){
		MarvinImage.copyColorArray(imageIn, imageOut);
		int rsize=0;
		for(int x=0; x 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)));
					imageOut.fillRect(x, y, rsize, rsize, Color.red);
				}				
			}
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy