Skip to content

Commit

Permalink
Prepare to release
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Nov 7, 2023
1 parent 3ee6db1 commit 2acb4a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
<artifactId>weasis-dicom-tools</artifactId>
<packaging>jar</packaging>
<name>Weasis DICOM API (based on dcm4che3)</name>
<version>5.31.0</version>
<version>5.31.1</version>

<properties>
<java-version>17</java-version>
<enforcer.jdk-version>[${java-version},)</enforcer.jdk-version>
<enforcer.maven-version>[3.0.5,)</enforcer.maven-version>
<dcm4che.version>5.31.0</dcm4che.version>
<dcm4che.version>5.31.1</dcm4che.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<weasis.core.img.version>4.8.0.1</weasis.core.img.version>
<weasis.opencv.native.version>4.8.0-dcm</weasis.opencv.native.version>
<weasis.core.img.version>4.8.1</weasis.core.img.version>
<weasis.opencv.native.version>4.8.1-dcm</weasis.opencv.native.version>

<sonar.projectKey>weasis-dicom-tools</sonar.projectKey>
<sonar.organization>nroduit-github</sonar.organization>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/dcm4che3/img/op/MaskArea.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ public static ImageCV drawShape(Mat srcImg, MaskArea maskArea) {
Scalar color =
c == null ? new Scalar(0, 0, 0) : new Scalar(c.getBlue(), c.getGreen(), c.getRed());
for (Shape shape : maskArea.getShapeList()) {
if (c == null && shape instanceof Rectangle) {
Rectangle r = (Rectangle) shape;
if (c == null && shape instanceof Rectangle r) {
r = r.intersection(new Rectangle(0, 0, srcImg.width(), srcImg.height()));
Rect rect2d = new Rect(r.x, r.y, r.width, r.height);
if (r.width < 3 || r.height < 3) {
Expand Down

0 comments on commit 2acb4a1

Please sign in to comment.