Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsacha committed Jan 15, 2023
2 parents a2481e7 + b35c581 commit 6dc7b64
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 217 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.4.3
version = 3.6.1

runner.dialect = scala213source3
fileOverride {
Expand Down
3 changes: 0 additions & 3 deletions build-extras.sbt

This file was deleted.

20 changes: 7 additions & 13 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import java.net.URL

name := "ijp-debayer2sx"

ThisBuild / version := "1.3.3"
ThisBuild / version := "1.3.3.1-SNAPSHOT"
ThisBuild / organization := "net.sf.ij-plugins"
ThisBuild / sonatypeProfileName := "net.sf.ij-plugins"
ThisBuild / homepage := Some(new URL("https://github.com/ij-plugins/ijp-color"))
ThisBuild / startYear := Some(2002)
ThisBuild / licenses := Seq(("LGPL-2.1", new URL("https://opensource.org/licenses/LGPL-2.1")))

ThisBuild / scalaVersion := "2.13.8"
ThisBuild / crossScalaVersions := Seq("2.13.8", "2.12.16", "3.0.2")
ThisBuild / scalaVersion := "3.2.1"
ThisBuild / crossScalaVersions := Seq("3.2.1", "2.13.10", "2.12.17")

publishArtifact := false
publish / skip := true
Expand Down Expand Up @@ -46,12 +46,6 @@ val commonSettings = Seq(
"-explain"
)
),
scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 13)) => Seq("-target:8")
case _ => Seq.empty[String]
}
},
Compile / doc / scalacOptions ++= Opts.doc.title("IJP Debayer2SX API"),
Compile / doc / scalacOptions ++= Opts.doc.version(version.value),
Compile / doc / scalacOptions ++= Seq(
Expand All @@ -69,8 +63,8 @@ val commonSettings = Seq(
Compile / compile / javacOptions ++= Seq("-deprecation", "-Xlint", "--release", "8"),
//
libraryDependencies ++= Seq(
"net.imagej" % "ij" % "1.53s",
"org.scalatest" %% "scalatest" % "3.2.11" % "test"
"net.imagej" % "ij" % "1.54b",
"org.scalatest" %% "scalatest" % "3.2.15" % "test"
),
resolvers ++= Resolver.sonatypeOssRepos("snapshots"),
//
Expand Down Expand Up @@ -104,11 +98,11 @@ lazy val ijp_debayer2sx_core = project.in(file("ijp-debayer2sx-core"))
name := "ijp-debayer2sx-core",
description := "IJP DeBayer2SX Core",
commonSettings,
libraryDependencies += "io.github.metarank" %% "cfor" % "0.3",
libraryDependencies ++= {
if (isScala2(scalaVersion.value)) {
Seq(
"com.beachape" %% "enumeratum" % "1.7.0",
"io.github.metarank" %% "cfor" % "0.2"
"com.beachape" %% "enumeratum" % "1.7.2"
)
} else {
Seq.empty[ModuleID]
Expand Down
Binary file added data/House_bayerGR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Image/J Plugins
* Copyright (C) 2002-2021 Jarek Sacha
* Copyright (C) 2002-2023 Jarek Sacha
* Author's email: jpsacha at gmail [dot] com
*
* This library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -30,12 +30,12 @@ object DeBayer2Config {
* Debayer algorithm type.
*/
enum Demosaicing(val entryName: String) {
case Replication extends Demosaicing("Replication")
case Bilinear extends Demosaicing("Bilinear")
case SmoothHue extends Demosaicing("Smooth Hue")
case Replication extends Demosaicing("Replication")
case Bilinear extends Demosaicing("Bilinear")
case SmoothHue extends Demosaicing("Smooth Hue")
case AdaptiveSmoothHue extends Demosaicing("Adaptive Smooth Hue")
case DDFAPD extends Demosaicing("DDFAPD without Refining")
case DDFAPDRefined extends Demosaicing("DDFAPD with Refining")
case DDFAPD extends Demosaicing("DDFAPD without Refining")
case DDFAPDRefined extends Demosaicing("DDFAPD with Refining")

override def toString: String = entryName
def name: String = entryName
Expand All @@ -53,11 +53,13 @@ object DeBayer2Config {
/**
* Order of filters in Bayer image.
* For instance B-G means that the first pixel in the first row is `B` the next one is `G`.
*
* The `bayer1ID` is the flag used by the Bayer1 algorithms, see [[ij_plugins.debayer2sx.Debayer1#replicate_decode]].
*/
enum MosaicOrder(val entryName: String, val bayer1ID: Int) {
case B_G extends MosaicOrder("B-G", 1)
case G_B extends MosaicOrder("G-B", 3)
case G_R extends MosaicOrder("G-R", 2)
case G_B extends MosaicOrder("G-B", 2)
case G_R extends MosaicOrder("G-R", 3)
case R_G extends MosaicOrder("R-G", 0)

override def toString: String = entryName
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Image/J Plugins
* Copyright (C) 2002-2021 Jarek Sacha
* Copyright (C) 2002-2023 Jarek Sacha
* Author's email: jpsacha at gmail [dot] com
*
* This library is free software; you can redistribute it and/or
Expand Down
4 changes: 2 additions & 2 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Image/J Plugins
# Copyright (C) 2002-2021 Jarek Sacha
# Copyright (C) 2002-2023 Jarek Sacha
# Author's email: jpsacha at gmail [dot] com
#
# This library is free software; you can redistribute it and/or
Expand All @@ -19,4 +19,4 @@
#
# Latest release available at https://github.com/ij-plugins/ijp-DeBayer2SX
#
sbt.version=1.7.1
sbt.version=1.8.2
4 changes: 2 additions & 2 deletions project/sbt-sonatype.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
//
// [https://github.com/xerial/sbt-sonatype]
//
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.13")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.15")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")

0 comments on commit 6dc7b64

Please sign in to comment.