mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
converting images to PNG
This commit is contained in:
parent
edb15dee3d
commit
2853bab471
Binary file not shown.
Before Width: | Height: | Size: 1.5 MiB |
BIN
samples/java/sbt/src/main/resources/img1.png
Normal file
BIN
samples/java/sbt/src/main/resources/img1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 272 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.5 MiB |
BIN
samples/java/sbt/src/main/resources/img2.png
Normal file
BIN
samples/java/sbt/src/main/resources/img2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 278 KiB |
@ -45,8 +45,8 @@ object ScalaCorrespondenceMatchingDemo {
|
||||
}
|
||||
|
||||
// Load the images from the |resources| directory.
|
||||
val leftImage = Highgui.imread(getClass.getResource("/img1.bmp").getPath)
|
||||
val rightImage = Highgui.imread(getClass.getResource("/img2.bmp").getPath)
|
||||
val leftImage = Highgui.imread(getClass.getResource("/img1.png").getPath)
|
||||
val rightImage = Highgui.imread(getClass.getResource("/img2.png").getPath)
|
||||
|
||||
// Detect KeyPoints and extract descriptors.
|
||||
val (leftKeyPoints, leftDescriptors) = detectAndExtract(leftImage)
|
||||
|
Loading…
Reference in New Issue
Block a user