A convenient framework for the Java image processing after encapsulation processing ImageJ

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/zhanghaishan/article/details/84990094

Using USE

<dependency>
	<groupId>org.mountcloud</groupId>
	<artifactId>imagej-operate</artifactId>
	<version>0.1</version>
</dependency>

description

  This project is imagej basic framework of operation, mainly in order to optimize the operation of imagej, this project is mainly java background operation on the image.

Feature

1: Please refer to IJGaussianBlurParam and IJGaussianBlurOperation.

2: Param is a complete operating with the completion of the Operation.

3: operation inheritance IJOperationBase, param inheritance IJParamBase, extended operation in the above manner.

Demo example

@Test
public void testBlur() throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
    IJGaussianBlurParam param = new IJGaussianBlurParam();
    param.setRadius(25);
    param.setSourceImage("D:\\Pictures\\222.jpg");
    param.setTargetImage("D:\\Pictures\\222_25.png");


    IJGaussianBlurOperation operation = IJOperationFactory.getFactory("org.mountcloud.imagej.operate.operation").createOperation(param);
    System.out.println(operation.run());
}

Guess you like

Origin blog.csdn.net/zhanghaishan/article/details/84990094
Recommended