comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » rebin but ignore zero
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
rebin but ignore zero [message #62677] Fri, 26 September 2008 12:32
David Klassen is currently offline  David Klassen
Messages: 27
Registered: December 2004
Junior Member
I have a very sparse array (image) and I want to resize it---shrink
it by a factor of 2 in each direction. If I do a rebin, every pixel
is
replaced by its nearest neighbor average, but many of those
neighbors are zeroes---not real zeroes, but zero because there
is no data there. This means, the resulting rebin-ed image has
values that are smaller than they "should" be.

Is there a way to do a rebin that can ignore these "blank" pixels?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Possible to display .h5 ad .hdf together
Next Topic: Re: how to countor on YZ-surface

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:55:51 PDT 2025

Total time taken to generate the page: 0.00434 seconds