Skip to content

Commit

Permalink
Merge pull request #1 from lessthanoptimal/SNAPSHOT
Browse files Browse the repository at this point in the history
Merge latest changes
  • Loading branch information
joshuajaharwood authored Mar 8, 2025
2 parents 20a1842 + 0083529 commit 32a1e56
Show file tree
Hide file tree
Showing 101 changed files with 599 additions and 372 deletions.
2 changes: 1 addition & 1 deletion .idea/copyright/boofcv.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ BoofCV is on [Maven Central](http://search.maven.org/) and can be easily added t
For Gradle projects:
```
dependencies {
api(group: 'org.boofcv', name: 'boofcv-core', version: '1.1.7')
api(group: 'org.boofcv', name: 'boofcv-core', version: '1.1.8')
}
```

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ allprojects {
apply plugin: 'com.peterabeles.gversion'

group = 'org.boofcv'
version = '1.1.8-SNAPSHOT'
version = '1.1.9-SNAPSHOT'

createVersionFile.enabled = false // run only once. enabled in types
}
Expand Down Expand Up @@ -132,8 +132,8 @@ subprojects {
}

dependencies {
api("org.georegression:georegression:0.27.3") { exclude group: 'org.ddogleg' }
api("org.ddogleg:ddogleg:0.23.4")
api("org.georegression:georegression:0.27.4") { exclude group: 'org.ddogleg' }
api("org.ddogleg:ddogleg:0.23.6-SNAPSHOT")

api("net.sf.trove4j:trove4j:${project.trove4j_version}")

Expand Down
17 changes: 17 additions & 0 deletions change.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ Version Meaning: <compatible>.<feature>.<bug fix>
- Second digit indicates if a new feature was added and/or if only a minor refactoring has been done
- Last digit always indicates a bug fix and other minor changes

---------------------
Date : 2025/XXX/YY
Version : 1.1.9

- VerboseUtils
* Moving verbose related utilities into DDogleg
* Deprecated functions in BoofCV

---------------------
Date : 2025/Mar/06
Version : 1.1.8

- PackedArray
* Added isEquals()
* Fixed bug where set(index, point) overwrite the value of `point`
* Added implementation specific variants of set( index , ... )

---------------------
Date : 2024/Oct/05
Version : 1.1.7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ configurations {

dependencies {
['boofcv-android', 'boofcv-core'].each {
String a -> implementation group: 'org.boofcv', name: a, version: '1.1.7'
String a -> implementation group: 'org.boofcv', name: a, version: '1.1.8'
}

def fragment_version = "2.5.3"
Expand Down
2 changes: 1 addition & 1 deletion integration/boofcv-android/examples/video/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ configurations {

dependencies {
['boofcv-android', 'boofcv-core'].each {
String a -> api group: 'org.boofcv', name: a, version: '1.1.7' }
String a -> api group: 'org.boofcv', name: a, version: '1.1.8' }

annotationProcessor 'org.projectlombok:lombok:1.18.16'

Expand Down
6 changes: 3 additions & 3 deletions integration/boofcv-kotlin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
id 'org.jetbrains.kotlin.jvm' version '1.7.22'
}

configurations.all {
resolutionStrategy {
force "org.jetbrains:annotations:$project.jetnull_version"
force "org.jetbrains.kotlin:kotlin-stdlib:1.6.10"
force "org.jetbrains.kotlin:kotlin-stdlib-common:1.6.10"
force "org.jetbrains.kotlin:kotlin-stdlib:1.7.22"
force "org.jetbrains.kotlin:kotlin-stdlib-common:1.7.22"
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Peter Abeles. All Rights Reserved.
* Copyright (c) 2025, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
Expand Down Expand Up @@ -33,6 +33,7 @@
import lombok.Getter;
import lombok.Setter;
import org.ddogleg.struct.VerbosePrint;
import org.ddogleg.util.VerboseUtils;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;
Expand Down Expand Up @@ -475,8 +476,8 @@ public void showHelpWindow() {
}

@Override public void setVerbose( @Nullable PrintStream out, @Nullable Set<String> configuration ) {
verbose = BoofMiscOps.addPrefix(this, out);
BoofMiscOps.verboseChildren(out, configuration, renderer);
verbose = VerboseUtils.addPrefix(this, out);
VerboseUtils.verboseChildren(out, configuration, renderer);
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Peter Abeles. All Rights Reserved.
* Copyright (c) 2025, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
Expand All @@ -19,7 +19,6 @@
package boofcv.alg.shapes.ellipse;

import boofcv.alg.filter.binary.ContourPacked;
import boofcv.misc.BoofMiscOps;
import boofcv.struct.distort.PixelTransform;
import boofcv.struct.image.GrayU8;
import boofcv.struct.image.ImageGray;
Expand All @@ -28,6 +27,7 @@
import georegression.struct.point.Point2D_I32;
import org.ddogleg.struct.DogArray;
import org.ddogleg.struct.VerbosePrint;
import org.ddogleg.util.VerboseUtils;
import org.jetbrains.annotations.Nullable;

import java.io.PrintStream;
Expand Down Expand Up @@ -197,8 +197,8 @@ public List<EllipseRotated_F64> getFoundEllipses( @Nullable List<EllipseRotated_
}

@Override public void setVerbose( @Nullable PrintStream out, @Nullable Set<String> config ) {
this.verbose = BoofMiscOps.addPrefix(this, out);
BoofMiscOps.verboseChildren(out, config, ellipseDetector);
this.verbose = VerboseUtils.addPrefix(this, out);
VerboseUtils.verboseChildren(out, config, ellipseDetector);
}

@SuppressWarnings({"NullAway.Init"})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Peter Abeles. All Rights Reserved.
* Copyright (c) 2025, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
Expand All @@ -24,7 +24,6 @@
import boofcv.alg.filter.binary.ContourOps;
import boofcv.alg.filter.binary.ContourPacked;
import boofcv.factory.filter.binary.FactoryBinaryContourFinder;
import boofcv.misc.BoofMiscOps;
import boofcv.struct.ConfigLength;
import boofcv.struct.ConnectRule;
import boofcv.struct.distort.PixelTransform;
Expand All @@ -42,6 +41,7 @@
import lombok.Setter;
import org.ddogleg.struct.DogArray;
import org.ddogleg.struct.VerbosePrint;
import org.ddogleg.util.VerboseUtils;
import org.jetbrains.annotations.Nullable;

import java.io.PrintStream;
Expand Down Expand Up @@ -344,7 +344,7 @@ public List<Found> getFound() {
}

@Override public void setVerbose( @Nullable PrintStream out, @Nullable Set<String> configuration ) {
this.verbose = BoofMiscOps.addPrefix(this, out);
this.verbose = VerboseUtils.addPrefix(this, out);
}

@SuppressWarnings({"NullAway.Init"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package boofcv.struct.feature;

import boofcv.misc.BoofLambdas;
import boofcv.struct.PackedArray;
import org.ddogleg.struct.DogArray_I32;

/**
Expand Down Expand Up @@ -99,6 +100,10 @@ public PackedTupleArray_B( int dof ) {
}
}

@Override public boolean isEquals( PackedArray<TupleDesc_B> other ) {
return array.isEquals(((PackedTupleArray_B)other).array);
}

@Override public int getDOF() {
return dof;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package boofcv.struct.feature;

import boofcv.misc.BoofLambdas;
import boofcv.struct.PackedArray;
import org.ddogleg.struct.DogArray_F64;

/**
Expand Down Expand Up @@ -95,6 +96,10 @@ public PackedTupleArray_F64( int dof ) {
}
}

@Override public boolean isEquals( PackedArray<TupleDesc_F64> other ) {
return array.isEquals(((PackedTupleArray_F64)other).array);
}

@Override public int getDOF() {
return dof;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package boofcv.struct.feature;

import boofcv.misc.BoofLambdas;
import boofcv.struct.PackedArray;
import org.ddogleg.struct.DogArray_I8;

/**
Expand Down Expand Up @@ -95,6 +96,10 @@ public PackedTupleArray_S8( int dof ) {
}
}

@Override public boolean isEquals( PackedArray<TupleDesc_S8> other ) {
return array.isEquals(((PackedTupleArray_S8)other).array);
}

@Override public int getDOF() {
return dof;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package boofcv.struct.feature;

import boofcv.misc.BoofLambdas;
import boofcv.struct.PackedArray;
import org.ddogleg.struct.DogArray_I8;

/**
Expand Down Expand Up @@ -95,6 +96,10 @@ public PackedTupleArray_U8( int dof ) {
}
}

@Override public boolean isEquals( PackedArray<TupleDesc_U8> other ) {
return array.isEquals(((PackedTupleArray_U8)other).array);
}

@Override public int getDOF() {
return dof;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package boofcv.struct.feature;

import boofcv.misc.BoofLambdas;
import boofcv.struct.PackedArray;
import org.ddogleg.struct.BigDogArray_I32;
import org.ddogleg.struct.BigDogGrowth;

Expand Down Expand Up @@ -100,6 +101,10 @@ public PackedTupleBigArray_B( int dof ) {
});
}

@Override public boolean isEquals( PackedArray<TupleDesc_B> other ) {
return array.isEquivalent(((PackedTupleBigArray_B)other).array);
}

@Override public int getDOF() {
return dof;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package boofcv.struct.feature;

import boofcv.misc.BoofLambdas;
import boofcv.struct.PackedArray;
import org.ddogleg.struct.BigDogArray_F64;
import org.ddogleg.struct.BigDogGrowth;

Expand Down Expand Up @@ -96,6 +97,10 @@ public PackedTupleBigArray_F64( int dof ) {
});
}

@Override public boolean isEquals( PackedArray<TupleDesc_F64> other ) {
return array.isEquivalent(((PackedTupleBigArray_F64)other).array, 0.0);
}

@Override public int getDOF() {
return dof;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package boofcv.struct.feature;

import boofcv.misc.BoofLambdas;
import boofcv.struct.PackedArray;
import org.ddogleg.struct.BigDogArray_I8;
import org.ddogleg.struct.BigDogGrowth;

Expand Down Expand Up @@ -96,6 +97,10 @@ public PackedTupleBigArray_S8( int dof ) {
});
}

@Override public boolean isEquals( PackedArray<TupleDesc_S8> other ) {
return array.isEquivalent(((PackedTupleBigArray_S8)other).array);
}

@Override public int getDOF() {
return dof;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package boofcv.struct.feature;

import boofcv.misc.BoofLambdas;
import boofcv.struct.PackedArray;
import org.ddogleg.struct.BigDogArray_I8;
import org.ddogleg.struct.BigDogGrowth;

Expand Down Expand Up @@ -96,6 +97,10 @@ public PackedTupleBigArray_U8( int dof ) {
});
}

@Override public boolean isEquals( PackedArray<TupleDesc_U8> other ) {
return array.isEquivalent(((PackedTupleBigArray_U8)other).array);
}

@Override public int getDOF() {
return dof;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Peter Abeles. All Rights Reserved.
* Copyright (c) 2025, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
Expand All @@ -22,12 +22,12 @@
import boofcv.factory.geo.ConfigBundleAdjustment;
import boofcv.factory.geo.ConfigTriangulation;
import boofcv.factory.geo.FactoryMultiView;
import boofcv.misc.BoofMiscOps;
import boofcv.misc.ConfigConverge;
import lombok.Getter;
import lombok.Setter;
import org.ddogleg.optimization.ConfigNonLinearLeastSquares;
import org.ddogleg.struct.VerbosePrint;
import org.ddogleg.util.VerboseUtils;
import org.jetbrains.annotations.Nullable;

import java.io.PrintStream;
Expand Down Expand Up @@ -141,6 +141,6 @@ public void printCounts( PrintStream out ) {
}

@Override public void setVerbose( @Nullable PrintStream out, @Nullable Set<String> configuration ) {
this.verbose = BoofMiscOps.addPrefix(this, out);
this.verbose = VerboseUtils.addPrefix(this, out);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Peter Abeles. All Rights Reserved.
* Copyright (c) 2025, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
Expand Down Expand Up @@ -38,6 +38,7 @@
import org.ddogleg.struct.DogArray_I32;
import org.ddogleg.struct.FastAccess;
import org.ddogleg.struct.VerbosePrint;
import org.ddogleg.util.VerboseUtils;
import org.ejml.data.DMatrix3;
import org.ejml.data.DMatrixRMaj;
import org.ejml.dense.row.CommonOps_DDRM;
Expand Down Expand Up @@ -361,7 +362,7 @@ private void printFoundMetric( List<ElevateViewInfo> views, MetricCameras metric
@Override public int getMinimumViews() {return selfCalib.getMinimumProjectives();}

@Override public void setVerbose( @Nullable PrintStream out, @Nullable Set<String> configuration ) {
this.verbose = BoofMiscOps.addPrefix(this, out);
BoofMiscOps.verboseChildren(verbose, configuration, resolveSign, refiner);
this.verbose = VerboseUtils.addPrefix(this, out);
VerboseUtils.verboseChildren(verbose, configuration, resolveSign, refiner);
}
}
Loading

0 comments on commit 32a1e56

Please sign in to comment.