本文整理匯總了Java中ij.process.ImageProcessor.duplicate方法的典型用法代碼示例。如果您正苦於以下問題:Java ImageProcessor.duplicate方法的具體用法?Java ImageProcessor.duplicate怎麽用?Java ImageProcessor.duplicate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ij.process.ImageProcessor
的用法示例。
在下文中一共展示了ImageProcessor.duplicate方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: outline
import ij.process.ImageProcessor; //導入方法依賴的package包/類
void outline(ImageProcessor ip){
int[][] H = {{0,1,0},
{1,1,1},
{0,1,0}
};
ImageProcessor foreground = ip.duplicate();
erode(foreground,H);
ip.copyBits(foreground,0,0,Blitter.DIFFERENCE);
}
示例2: applyTo
import ij.process.ImageProcessor; //導入方法依賴的package包/類
/**
* Destructively transforms the image in "ip" using this geometric
* mapping and the specified pixel interpolation method.
* TODO: this should not be here (geometry only)?
*
* @param ip target image to which THIS mapping is applied.
* @param im interpolation method.
*/
public void applyTo(ImageProcessor ip, InterpolationMethod im) {
// make a temporary copy of the image:
ImageProcessor source = ip.duplicate();
ImageProcessor target = ip;
applyTo(source, target, im);
source = null;
}