Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new imglib2 parallelization approach #83

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
630a8cb
Add utility class to simplify the creation of test images
maarzt Dec 6, 2022
31f054a
Add unit test for class Thresholder
maarzt Dec 6, 2022
6fdf423
Add unit test for class DifferenceOfGaussian
maarzt Dec 1, 2022
481bf0f
Refactor ConnectedComponentsTest and test more methods
maarzt Dec 2, 2022
f5ff37a
Add unit tests for Dilation and Erosion
maarzt Dec 2, 2022
bfaa8bd
Add unit test for class MorphologyUtils
maarzt Dec 2, 2022
6a4f3a2
Add unit test for class ComputeMinMax
maarzt Dec 6, 2022
3184e2f
POM: pin imglib2 version to 5.13.0
maarzt Nov 10, 2021
ac3b901
Change Thresholder implementation to multi-threaded LoopBuilder
maarzt Nov 10, 2021
8397118
Update DifferenceOfGaussian to use multi-threaded LoopBuilder and img…
maarzt Nov 10, 2021
7e28716
Update ConntectedComponenets to make use of the Parallelization context.
maarzt Nov 10, 2021
791c47f
Change TensorEigenValues to use multi-threaded LoopBuilder.
maarzt Nov 10, 2021
4873a47
Change Dilation to use IterableLoopBuilder
maarzt Dec 2, 2022
f294d06
Change Erosion to use IterableLoopBuilder
maarzt Dec 2, 2022
ddba38a
Update MorphologyUtils to use Parallelization framework
maarzt Dec 2, 2022
fe79678
Update DistanceTransform to use parallelization framework
maarzt Dec 2, 2022
3dd9ecd
Chang PartialDerivative to use multi-threaded LoopBuilder
maarzt Dec 2, 2022
23ea534
Update LocalExtrema to use parallelization framework
maarzt Dec 2, 2022
7fe1eaf
Change SubpixelLocalization to use the Parallelization framework
maarzt Dec 6, 2022
5c81783
Update ComputeMinMax to use parallelization framework
maarzt Dec 2, 2022
6d4f829
Add benchmark for LocalExtrema
maarzt Dec 2, 2022
ae8e500
Merge branch 'master' into parallel
ctrueden Feb 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add unit test for class ComputeMinMax
  • Loading branch information
maarzt committed Dec 6, 2022
commit 6a4f3a2e88fae8940dbbbcbce44432422025bc2d
21 changes: 21 additions & 0 deletions src/test/java/net/imglib2/algorithm/stats/ComputeMinMaxTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package net.imglib2.algorithm.stats;

import net.imglib2.img.Img;
import net.imglib2.img.array.ArrayImgs;
import net.imglib2.type.numeric.integer.IntType;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class ComputeMinMaxTest
{
@Test
public void testComputeMinMax() {
Img<IntType> image = ArrayImgs.ints( new int[] { 100, 100, 50, 200 }, 2, 2 );
IntType min = new IntType( 0 );
IntType max = new IntType( 0 );
ComputeMinMax.computeMinMax( image, min, max );
assertEquals( new IntType(50), min );
assertEquals( new IntType(200), max );
}
}