net.imagej.ops.OpService Java Examples

The following examples show how to use net.imagej.ops.OpService. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SliceTest.java    From imagej-ops with BSD 2-Clause "Simplified" License 6 votes vote down vote up
@Override
@Before
public void setUp() {
	context = new Context(OpService.class);
	ops = context.service(OpService.class);

	in = ArrayImgs.bytes(20, 20, 21);
	out = ArrayImgs.bytes(20, 20, 21);

	// fill array img with values (plane position = value in px);

	for (final Cursor<ByteType> cur = in.cursor(); cur.hasNext();) {
		cur.fwd();
		cur.get().set((byte) cur.getIntPosition(2));
	}
}
 
Example #2
Source File: AbstractFeatureTest.java    From imagej-ops with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected Context createContext() {
	return new Context(OpService.class);
}
 
Example #3
Source File: ColocalisationTest.java    From imagej-ops with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected Context createContext() {
	return new Context(OpService.class, OpMatchingService.class,
		CacheService.class, StatusService.class, SCIFIOService.class);
}
 
Example #4
Source File: DefaultDetectRidgesTest.java    From imagej-ops with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected Context createContext() {
	return new Context(OpService.class, OpMatchingService.class,
		CacheService.class, StatusService.class, UIService.class);
}
 
Example #5
Source File: TubenessTest.java    From imagej-ops with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected Context createContext() {
	return new Context(OpService.class, OpMatchingService.class,
		CacheService.class, StatusService.class);
}
 
Example #6
Source File: FrangiVesselnessTest.java    From imagej-ops with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected Context createContext() {
	return new Context(OpService.class, OpMatchingService.class,
		CacheService.class, ScriptService.class);
}