Comments (1)
Sorry for the delay in replying. I had overlooked this "issue". Anyway, we can basically do the same thing with the C++ API, which is closer to the Java API of the wrapper from OpenCV. So, something like this should work:
MatVector mChannels = new MatVector(4);
public void apply(Mat src, Mat dst) {
split(src, mChannels);
Mat r = mChannels.get(0);
Mat g = mChannels.get(1);
Mat b = mChannels.get(2);
// dst.b = min(dst.r, dst.g, dst.b)
min(b, r, b);
min(b, g, b);
merge(mChannels, dst);
}
from javacpp-presets.
Related Issues (20)
- PyTorch AdaptiveAvgPool2dImpl constructor HOT 2
- Missing Py*_Check Methods in JavaCPP Preset for CPython HOT 1
- [PyTorch] How to check if a tensor is None HOT 5
- arpack-ng-platform adds macosx-arm64 support HOT 3
- NegativeArraySizeException when building native image with cuda-redist using (flandmark-demo) HOT 3
- [PyTorch 2.2.2-1.5.11-SNAPSHOT] Exception java.lang.UnsatisfiedLinkError: no jnitorch in java.library.path on WIndows HOT 15
- Error trying to build android-arm HOT 3
- [PyTorch 2.2.2-1.5.11-SNAPSHOT] Training produces poor MNIST model on Windows HOT 7
- [PyTorch] Training is very slow on Linux. HOT 9
- Shaka-Packager Preset HOT 3
- [PyTorch] torch.cuda.is_bf16_supported() is missing HOT 8
- [PyTroch] torch_cuda.set_device() and torch.manual_seed() hang HOT 5
- UnsatisfiedLinkError with tesseract-platform after upgrade to 5.3.4-1.5.10 HOT 1
- ffmpeg: av_parser_parse2 missing @ByPtrPtr for poutbuf_size HOT 1
- [PyTorch] model always loaded to GPU device 0 HOT 1
- Couldn't load libjnidnnl.dylib HOT 10
- DuplicateRelativePath when build android app HOT 1
- Script Node Depth IA HOT 1
- FFmpeg random SIGSEGV calling av_dump_format on wrapper HOT 3
- why can't I found package org.bytedeco.parquet in org.bytedeco:arrow:6.0.1-1.5.8? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javacpp-presets.