Miles
Miles

Reputation: 2537

Java image manipulation libraries?

Any suggestions for Java image manipulation libraries? I want to find a way of getting the coordinates of say, a line.

Thanks.

Upvotes: 2

Views: 3352

Answers (5)

Ivan Nikitin
Ivan Nikitin

Reputation: 4143

Java is fine for vector calculations on modern hardware. Unfortunately, raster libraries written purely in Java (e.g. ImageJ) is much slower compared to their native counterparts. From what I can see, this happens because:

  • It's impossible to use vector CPU instructions;
  • Extra bounds checks when iterating over pixel arrays;
  • Garbage Collector that may start working in the middle of your algorithm.

After trying several approaches, we ended with a native library based on FreeImage and TurboJPEG that does processing for us. Our java app (Visual Watermark) calls it via JNI interface.

Upvotes: 0

Chetan Gole
Chetan Gole

Reputation: 743

After reading your comments it seems you need Vector manipulation stuff.

JTS is very popular in this field. Take a look at it - http://www.vividsolutions.com/jts/jtshome.htm . JTS Topology Suite is an API of 2D spatial predicates and functions. Also its Free and Open Source.

Your question is bit confusing. When you say "Image Manipulation" many people will think of scalars.

Upvotes: 1

vehk
vehk

Reputation: 946

Haven't used it myself, but ImageJ seems to be a pretty good choice for image analysis and processing.

Upvotes: 2

fmucar
fmucar

Reputation: 14558

see following website for more info

http://www.jhlabs.com/

Upvotes: 0

Related Questions