Skip to content

Commit

Permalink
refactor: move image to standard distrib
Browse files Browse the repository at this point in the history
  • Loading branch information
4e6 committed Mar 17, 2021
1 parent 1fa5ae5 commit 455f6d3
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 39 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,7 @@ lazy val `std-bits` = project
libraryDependencies ++= Seq(
"com.ibm.icu" % "icu4j" % icuVersion,
"com.univocity" % "univocity-parsers" % "2.9.0",
"org.openpnp" % "opencv" % "4.5.1-0",
"org.xerial" % "sqlite-jdbc" % "3.34.0",
"org.postgresql" % "postgresql" % "42.2.19"
),
Expand Down
5 changes: 0 additions & 5 deletions distribution/std-lib/Image/THIRD-PARTY/NOTICE

This file was deleted.

6 changes: 0 additions & 6 deletions distribution/std-lib/Image/package.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from Base import all
import Base.System.File
import Image.Data.Matrix
import Image.Codecs.Internal
from Standard.Base import all
import Standard.Base.System.File
import Standard.Image.Data.Matrix
import Standard.Image.Codecs.Internal

polyglot java import org.enso.image.Image as Java_Image

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from Base import all
import Image.Codecs
from Standard.Base import all
import Standard.Image.Codecs

polyglot java import org.opencv.core.MatOfInt
polyglot java import org.opencv.imgcodecs.Imgcodecs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from Base import all
import Image.Data.Histogram.Internal
from Standard.Base import all
import Standard.Image.Data.Histogram.Internal

polyglot java import org.enso.image.data.Histogram as Java_Histogram

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from Base import all
import Image.Data.Histogram
from Standard.Base import all
import Standard.Image.Data.Histogram

from_java hist =
Histogram.Histogram hist.get_channels (Vector.Vector hist.get_data)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from Base import all
import Image.Data.Matrix.Internal
from Standard.Base import all
import Standard.Image.Data.Matrix.Internal

polyglot java import org.enso.image.data.Matrix as Java_Matrix

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from Base import all
import Image.Data.Matrix
from Standard.Base import all
import Standard.Image.Data.Matrix

polyglot java import org.enso.image.data.Matrix as Java_Matrix
polyglot java import org.opencv.core.Mat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.enso.image;

import org.enso.opencv.OpenCV;
import org.enso.image.opencv.OpenCV;
import org.opencv.core.Core;
import org.opencv.core.Mat;
import org.opencv.imgcodecs.Imgcodecs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.enso.image;

import org.enso.opencv.OpenCV;
import org.enso.image.opencv.OpenCV;
import org.opencv.core.Core;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.enso.image.data;

import org.enso.opencv.OpenCV;
import org.enso.image.opencv.OpenCV;
import org.opencv.core.*;
import org.opencv.imgcodecs.Imgcodecs;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copied from https://github.com/openpnp/opencv/blob/v4.5.1-0/src/main/java/nu/pattern/OpenCV.java
// to allow library loading on GraalVM.
package org.enso.opencv;
package org.enso.image.opencv;

import org.opencv.core.Core;

Expand Down
10 changes: 5 additions & 5 deletions test/Image_Tests/src/Codecs_Spec.enso
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from Base import all
import Base.System.Process
import Base.System.Process.Exit_Code
import Test
from Standard.Base import all
import Standard.Base.System.Process
import Standard.Base.System.Process.Exit_Code
import Standard.Test

import Image.Codecs
import Standard.Image.Codecs

polyglot java import java.lang.System as Java_System

Expand Down
6 changes: 3 additions & 3 deletions test/Image_Tests/src/Data/Matrix_Spec.enso
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from Base import all
import Image.Data.Matrix
import Test
from Standard.Base import all
import Standard.Test
import Standard.Image.Data.Matrix

polyglot java import org.enso.image.data.Matrix as Java_Matrix

Expand Down
4 changes: 2 additions & 2 deletions test/Image_Tests/src/Main.enso
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from Base import all
import Test
from Standard.Base import all
import Standard.Test

import Image_Tests.Codecs_Spec
import Image_Tests.Data.Matrix_Spec
Expand Down

0 comments on commit 455f6d3

Please sign in to comment.