Skip to content

Commit

Permalink
* Fix Mat.createFrom(BufferedImage) (issue #30)
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Dec 6, 2014
1 parent 43a8113 commit 5c50179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Fix `Mat.createFrom(BufferedImage)` ([issue #30](https://github.com/bytedeco/javacpp-presets/issues/30))
* Add Speex and OpenSSL in the `cppbuild.sh` for FFmpeg to support common RTMPS streams, among other things ([issue #2](https://github.com/bytedeco/javacpp-presets/issues/2))
* Deprecate slow `get()` and `put()` methods of `CvMat` in favor of the fast ones from `createIndexer()` ([issue javacv:317](http://code.google.com/p/javacv/issues/detail?id=317))
* Include `operations.hpp` and `mat.hpp` in `opencv_core` to get a few important functions such as `read()` and `write()` for `FileStorage`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2574,7 +2574,7 @@ public static Mat createFrom(BufferedImage image, double gamma, boolean flipChan
default: assert false;
}
}
create(image.getWidth(), image.getHeight(), CV_MAKETYPE(depth, numChannels));
create(image.getHeight(), image.getWidth(), CV_MAKETYPE(depth, numChannels));
super.copyFrom(image, gamma, flipChannels, roi);
}

Expand Down

0 comments on commit 5c50179

Please sign in to comment.