ajayk0719 / jai-tools

Automatically exported from code.google.com/p/jai-tools
0 stars 0 forks source link

results of KernelFactory.createFromShape are not obvious #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you do...
KernelJAI k1 = KernelFactory.createCircle(radius);

Shape circle = new Ellipse2D.Float(0, 0, 10, 10);
KernelJAI k2 = KernelFactory.createFromShape(circle, ...other args)

k1 and k2 are not quite the same as might be expected. This is a result of
the definition of contains/intersects used by Shape classes. Not sure if
it's a problem that needs fixing or just an issue that needs to be flagged
for users

Original issue reported on code.google.com by michael.bedward@gmail.com on 9 Mar 2009 at 6:05

GoogleCodeExporter commented 9 years ago
Reworked createFromShape method using JTS geometry classes; problem seems to be 
fixed.
http://code.google.com/p/jai-tools/source/detail?r=206

Original comment by michael.bedward@gmail.com on 10 Mar 2009 at 8:16