Java中的点插值 [英] points interpolation in java

查看:339
本文介绍了Java中的点插值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我正在研究Java项目
在该项目的一部分中,我对所有19个点都具有二维(x,y,val)的(20)个点值
我想创建一个2D网格,其中包含所有通过插值法(双三次或双线性)组成的点
那么有没有解决方案,库,源代码或示例?
plx帮助
tnx all

Hi I''m working on a java project
in a part of this project I have some (20) point valuse in 2 dimension (x,y,val) for all 19 points
I want to create a 2D grid that contain all points by interpolation (bicubic or bilinear)
so is there any solution, library , source code or example?
plx help
tnx all

推荐答案

首先,为什么您甚至不考虑这样一个基本的事情,即使用众所周知的,描​​述得很好的算法自己实现插值?参见例如:
http://en.wikipedia.org/wiki/Bilinear_interpolation [ http://en.wikipedia.org/wiki/Bicubic_interpolation [ http://docs.oracle.com/cd/E17802_01/products/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/InterpolationBilinear.html [ http://docs.oracle.com/cd/E17802_01/products/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/InterpolationBicubic.html [执行力的增加.有趣的是:1)人类的视觉感知到的图像甚至略微被认为是过自然的,最通常无法察觉到这种影响; 2)鲜为人知的事实是,人类视觉系统中的信息处理本身会产生大量的过冲";所以in可能是解释上一项的因素之一.

—SA
First of all, why don''t you even consider such a basic thing as implementing the interpolation by yourself, using well-known and well described algorithms? See for example:
http://en.wikipedia.org/wiki/Bilinear_interpolation[^],
http://en.wikipedia.org/wiki/Bicubic_interpolation[^].

I understand, it needs time and requires some qualification, a lot of effort to test and debug it. But why not searching for the solutions using, say, Web search?

Please see:
http://docs.oracle.com/cd/E17802_01/products/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/InterpolationBilinear.html[^],
http://docs.oracle.com/cd/E17802_01/products/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/InterpolationBicubic.html[^].

Using the occasion, I also want to mention the known "overshoot" cases by bicubic algorithm which results in increased acutance. It''s interesting that 1) human vision perceives image with slight of even considered overshoot as very natural, most usually not spotting the effect; 2) it''s a little known fact that the processing of information in human visual system itself produce considerable "overshoot"; so in might be one of the factors explaining previous item.

—SA


亲爱的我以前在这个问题上所做的工作.
但是在Matlab中(所有整个项目)
有时,我要求在Java中工作而不从matlab2java进行转换,我也工作了我项目的其他部分,仅此部分保留了
所以,我用另一种方式重复我的问题:
Java中是否有类似Matlab函数(gridfit.m)的库或类?
tnx
dear all I worked on this problem previously.
but in Matlab (all entire project)
after times I asked to worked that in the java without converting from matlab2java , also I worked other part of my project and just this section remained
so, I repeat my question another way:
is there any library or class in java like matlab function (gridfit.m)?
tnx


这篇关于Java中的点插值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆