Java 图像处理

发布于 2024-12-08 21:20:55 字数 100 浏览 0 评论 0原文

我正在做一个大学项目,我需要用java处理图像。前段时间我在数学实验室工作,这很容易,所以我想知道是否存在任何可以让我玩像素值、颜色(按像素)、RGB 模型、灰度图像等的 java 库。

I'm working on a college project, where I need to handle images in java. Sometime ago I worked in math lab and it was so easy, so I would like to know if exits any java library that could let me play with the pixels values, color(by pixel), RGB model, gray-scale img, etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

廻憶裏菂餘溫 2024-12-15 21:20:56

好吧,Java 中有一个库可以帮助在 Java 程序中访问 Matlab 代码。请检查http://code.google.com/p/matlabcontrol/

Well, there is a library available in Java which can help to access Matlab code with in Java program. Please check http://code.google.com/p/matlabcontrol/

懷念過去 2024-12-15 21:20:56

我倾向于使用 DataBuffer 对象来处理这类事情。它不是很快,但如果你想轻松地获取像素信息,这是最简单的方法。它存储在 BufferedImageRaster 中。

I tend to use DataBuffer objects for this kind of stuff. It's not very fast, but if you want to get out pixel information easily, it's the easiest way to do it. It's stored in the Raster of the BufferedImage.

去了角落 2024-12-15 21:20:55

我不懂 matlab,但我经常使用 Java 图像处理...Java 标准库提供了大量在低级别处理图像的方法。您可以通过 BufferedImage 访问图像像素。确保阅读并理解 BufferedImageOp、RasterOp 和 ConvolveOp 类,否则您可能最终会重新发明东西。

java 图像处理的最佳示例位于 http://www.jhlabs.com/ ,您还可以在那里找到开源图像编辑器和所有图像效果演示的源代码。

I don't know matlab, but I worked with Java image processing a lot... Java standard library provides tons of methods to work with images on low level. You can access image pixels through BufferedImage. Make sure to read and understand the classes BufferedImageOp, RasterOp and ConvolveOp otherwise you may end up reinventing stuff.

The best examples for java image processing are on http://www.jhlabs.com/ There you can also find open source image editor and the source code for all the image effect demos.

烂人 2024-12-15 21:20:55

您可能需要查看以下类:

  • java.awt.image.BufferedImage
  • java.awt.image.Raster
  • javax.imageio.ImageIO

根据图像格式,您可能还需要查看(我希望不是)JAIJAI-imageio

You might want to take a look at the following classes:

  • java.awt.image.BufferedImage
  • java.awt.image.Raster
  • javax.imageio.ImageIO

Depending on the image formats you might also have to look (I hope not) at JAI and JAI-imageio.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文