Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.java.programmer Subject: Re: Bicubic interpolation suddenly is no better than bilinear. Date: Sun, 20 May 2012 09:02:48 -0400 Organization: The Wasteland Lines: 31 Message-ID: References: <9d143d01-dcf4-4343-9477-3ffbcd3027e1@ra8g2000pbc.googlegroups.com> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:14671 In article <9d143d01-dcf4-4343-9477-3ffbcd3027e1@ra8g2000pbc.googlegroups.com>, Dangling Pointer wrote: > On the positive side, SCALE_AREA_AVERAGING doesn't seem to be as slow > in Java 6 as it is reputed to be (possibly this reputation is based > on the performance of older versions). So I'll be using that for now. Thank you for reporting your (extensive) findings. It sounds like you are aware, but for reference: The Perils of Image.getScaledInstance() The last time I encountered such resampling problems, it turned out to be an artifact inserted earlier in my pipeline that only became apparent in a later stage. FWIW, I had good results from ImageJ's bicubic interpolation implementation. I needed both 8- and 16-bit versions, with endian control for the latter, and it proved easy to script. I'm not sure it's relevant, but I've occasionally had to specify the platform renderer instead of Sun’s 2D renderer: if (System.getProperty("os.name").startsWith("Mac OS X")) { System.setProperty("apple.awt.graphics.UseQuartz", "true"); } -- John B. Matthews trashgod at gmail dot com