Comments (10)
Not sure if it helps but this compiles in Java 9:
byte[] pixels = ((DataBufferByte) bufferedImage.getRaster().getDataBuffer()).getData();a
(http://stackoverflow.com/questions/6524196/java-get-pixel-array-from-image)
and
bufferedImage.getRaster().getNumBands();
((ComponentSampleModel)bufferedImage.getRaster().getSampleModel()).getScanlineStride();
etc
from boofcv.
Actually, now I can't compile due to references to missing classes
ByteInterleavedRaster
IntegerInterleavedRaster
ShortInterleavedRaster
SunWritableRaster
I made shims and switched to the slow converters and everything's working for the moment.
from boofcv.
I really hope they didn't remove those classes....
Is the open jdk or oracle jdk? There are some differences in internal classes.
from boofcv.
Oracle JDK 9b158-1. I don't see them around in this clone at least: https://github.com/netroby/jdk9-dev/tree/1f1e32c62957fac471fd49c4d597706cba281e6f/jdk/src/java.desktop/share/classes/java/awt/image
from boofcv.
Oh, they still seems to be here: https://github.com/netroby/jdk9-dev/tree/1f1e32c62957fac471fd49c4d597706cba281e6f/jdk/src/java.desktop/share/classes/sun/awt/image
from boofcv.
It's possible there's a jvm command line override to access the package: http://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m
from boofcv.
Still not ideal, but looking at your second comment I think there might be a workaround. Worst case scenario I'll have to create an implementation specific for JDK 9.
The reason these hacks are there is because BufferedImage is poorly designed from an efficiency perspective. As long as I can get access to the raw array and know the format it's encoded in this should be fast.
from boofcv.
Looked into this issue some more. Figured out how to still get access to the raw data. Unfortunate I have yet to figure out to get the data offset value. This means support for subimages will most likely be removed.
from boofcv.
I'm attempting to convince the developers of java 9 to change the api. Sounds like I missed the boat for the first release but maybe in a future update.
from boofcv.
Removed all references to internal sun raster classes. Should run in Java 9. Won't work with subimages in java 9
from boofcv.
Related Issues (20)
- RuntimeException when decoding specific files HOT 4
- Micro QR Detection HOT 3
- Real Time SLAM capabilities update HOT 1
- Faster Point Cloud Rendering
- Can't decode this QR-Code HOT 1
- Update snakeyaml to address CVE-2022-1471 vulnerability HOT 1
- Outdated dependencies HOT 4
- Bug in Release 0.43 HOT 3
- Cannot decode numeric QR codes containing exactly 4 digits HOT 2
- False positive finder pattern detection inside QR code HOT 2
- Automated check to make sure examples and demos build correctly
- Micro QR-codes are not detected HOT 4
- Micro QR Codes don't ignore malformed padding HOT 3
- 0.43.1 Problem ? HOT 1
- In 0.42 and before there's a code injection vulnerability of `boofcv.io.calibration.CalibrationIO.load` HOT 1
- Arbitrary code may be executed in readObject.
- Face effects?
- Embed qr code reader into my siwng application
- Cannot detect qrcode withou margin?
- Can't decode QR code using java example ExampleDetectQrCode
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 boofcv.