use of uk.ac.sussex.gdsc.test.junit5.RandomSeed in project GDSC-SMLM by aherbert.
the class SumFilterTest method intRollingBlockSumNxNInternalAndRollingBlockSumNxNInternalTransposedReturnSameResult.
@SeededTest
void intRollingBlockSumNxNInternalAndRollingBlockSumNxNInternalTransposedReturnSameResult(RandomSeed seed) {
final UniformRandomProvider rg = RngUtils.create(seed.getSeed());
final SumFilter filter = new SumFilter();
for (final int width : primes) {
for (final int height : primes) {
for (final int boxSize : boxSizes) {
intCompareRollingBlockSumNxNInternalAndRollingBlockSumNxNInternalTransposed(rg, filter, width, height, boxSize);
}
}
}
}
use of uk.ac.sussex.gdsc.test.junit5.RandomSeed in project GDSC-SMLM by aherbert.
the class SumFilterTest method intBlockSum3x3AndBlockSumNxNReturnSameResult.
@SeededTest
void intBlockSum3x3AndBlockSumNxNReturnSameResult(RandomSeed seed) {
final UniformRandomProvider rg = RngUtils.create(seed.getSeed());
final SumFilter filter = new SumFilter();
for (final int width : primes) {
for (final int height : primes) {
intCompareBlockSum3x3AndBlockSumNxN(rg, filter, width, height);
}
}
}
use of uk.ac.sussex.gdsc.test.junit5.RandomSeed in project GDSC-SMLM by aherbert.
the class SumFilterTest method floatBlockSumNxNAndStripedBlockSumNxNReturnSameResult.
@SeededTest
void floatBlockSumNxNAndStripedBlockSumNxNReturnSameResult(RandomSeed seed) {
final UniformRandomProvider rg = RngUtils.create(seed.getSeed());
final SumFilter filter = new SumFilter();
for (final int width : primes) {
for (final int height : primes) {
for (final int boxSize : boxSizes) {
floatCompareBlockSumNxNAndStripedBlockSumNxN(rg, filter, width, height, boxSize);
}
}
}
}
use of uk.ac.sussex.gdsc.test.junit5.RandomSeed in project GDSC-SMLM by aherbert.
the class SumFilterTest method intStripedBlockSum3x3AndStripedBlockSumNxNReturnSameResult.
@SeededTest
void intStripedBlockSum3x3AndStripedBlockSumNxNReturnSameResult(RandomSeed seed) {
final UniformRandomProvider rg = RngUtils.create(seed.getSeed());
final SumFilter filter = new SumFilter();
for (final int width : primes) {
for (final int height : primes) {
intCompareStripedBlockSum3x3AndStripedBlockSumNxN(rg, filter, width, height);
}
}
}
use of uk.ac.sussex.gdsc.test.junit5.RandomSeed in project GDSC-SMLM by aherbert.
the class SumFilterTest method intBlockSum3x3InternalAndBlockSumNxNInternalReturnSameResult.
@SeededTest
void intBlockSum3x3InternalAndBlockSumNxNInternalReturnSameResult(RandomSeed seed) {
final UniformRandomProvider rg = RngUtils.create(seed.getSeed());
final SumFilter filter = new SumFilter();
for (final int width : primes) {
for (final int height : primes) {
intCompareBlockSum3x3InternalAndBlockSumNxNInternal(rg, filter, width, height);
}
}
}
Aggregations