Re: morphological image processing in Python

2005-10-03 Thread Matt Feinstein
de these operations, nore do >Numeric/numarray/scipy. > >Have I missed the one true Python mathematical morphology toolbox? > >Thanks in advance for any advice. Actually, numarray does support morphological array operations. See the chapter on 'Multi-dimensional image processing

Re: Processing an image with numarray.nd image

2005-10-04 Thread Matt Feinstein
* import numarray.nd_image as Filter import PIL.Image as Image im = Image.open(file_name) array_dat = reshape(array(list(im.getdata())), im.size) filt_array_dat = Filter.correlate(array_dat, my_filter) et cetera... Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Newbie

2005-10-05 Thread Matt Feinstein
What toolkit is best for Windows development? >2. Which toolkits can I exclude from consideration? >3. What toolkit is most popular for Windows development? >4. Are there any impartial reviews of these packages anywhere? You have to give us a clue about what you mean by 'be

Re: Learning Python

2005-10-10 Thread Matt Feinstein
I guess I could use a primer in >OO programming). > >Any ideas? http://diveintopython.org/ Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python at Work

2005-10-17 Thread Matt Feinstein
which is checked when additional (binary) modules are installed. I don't think there's any other 'non-local' behavior. Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list

Re: any python module to calculate sin, cos, arctan?

2005-11-08 Thread Matt Feinstein
point versions of these functions >check out: > >http://calcrpnpy.sourceforge.net/clnumManual.html Unless you're using Windows. Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list

Re: any python module to calculate sin, cos, arctan?

2005-11-08 Thread Matt Feinstein
On Tue, 08 Nov 2005 06:43:51 -0800, Robert Kern <[EMAIL PROTECTED]> wrote: >Matt Feinstein wrote: >> On Tue, 08 Nov 2005 12:30:35 GMT, "Raymond L. Buvel" >> <[EMAIL PROTECTED]> wrote: > >>>http://calcrpnpy.sourceforge.net/clnumManual.html >>

Re: Which kid's beginners programming - Python or Forth?

2005-06-28 Thread Matt Feinstein
y buzz-word compliant. If you want to teach your kid something that will a basis for learning anything about current practices in programming, teach him Python. Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list

Gotchas in user-space matplotlib install?

2005-08-09 Thread Matt Feinstein
take the plunge would be appreciated. TIA... Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list

Re: Gotchas in user-space matplotlib install?

2005-08-15 Thread Matt Feinstein
version of Tcl/Tk, the need for other widget sets became somewhat academic. For GTK, Fedora Core 1 is apparently so far behind current levels of GTK that it is pointless to complain. Wx is still a possibility. All in all, not actually excruciating-- and now I have a working version of matplotlib

Re: Gotchas in user-space matplotlib install?

2005-08-15 Thread Matt Feinstein
On Mon, 15 Aug 2005 09:02:57 -0500, John Hunter <[EMAIL PROTECTED]> wrote: >>>>>> "Matt" == Matt Feinstein <[EMAIL PROTECTED]> writes: > >Matt> All in all, not actually excruciating-- and now I have a >Matt> working version of matplot

Off-screen rendering in PyOpenGL?

2005-08-17 Thread Matt Feinstein
Poking around in the PyOpenGL tarball... I can see that the wrapper for the WGL pixel format function includes flags for rendering to a bitmap and for hardware acceleration... so maybe I could get hardware-accelerated off-screen rendering under win32.. but what about linux? Matt Feinstein

Matplotlib question-- Numeric or numarray?

2005-04-08 Thread Matt Feinstein
Numeric. But there's only one current, unlabeled, windows installer and there seems to have been a change, some time back before version 0.7, in how this question is dealt with. Can someone clarify? thnksndvnc Matt Feinstein -- There is no virtue in believing something that can be proved to b

My stupid newbie mistake

2005-04-11 Thread Matt Feinstein
I named a file 'try.py' and then was stumped, for a while, when >>> import try gave a syntax error... So, how about a 'YouAreUsingAReservedWordStupid' exception ? Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- h

Re: goto statement

2005-04-20 Thread Matt Feinstein
On Wed, 20 Apr 2005 10:23:58 +0100 (BST), praba kar <[EMAIL PROTECTED]> wrote: >Dear All, > > In Python what is equivalent to goto statement I'd like to that implemented in an interpreted language. Requires some time travel. Matt Feinstein -- There is no virtue in beli

New versions of numarray?

2005-04-25 Thread Matt Feinstein
Hi-- I notice that there are some new versions of numarray available for download-- is there any documentation on what's new/fixed/broken? Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list

Re: Which IDE is recommended?

2005-04-27 Thread Matt Feinstein
lations with numerical arrays and plotting with Matplotlib, then ipython is the right choice-- it has a special 'pylab' mode that is Matplotlib-aware, allowing you to make plots interactively (as well as various other useful features). Matt Feinstein -- There is no virtue in believi

Numarray question

2005-05-13 Thread Matt Feinstein
It seems to me that if I could vectorize logical expressions (a la Matlab), it would be a lot easier to write functions that will take either scalar or vector input values. Am I missing something? Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list

Re: OSx 10.4 lacks pythonIDE?

2005-05-13 Thread Matt Feinstein
On Fri, 13 May 2005 03:21:40 +0100, baza <[EMAIL PROTECTED]> wrote: >Where is the IDE in 'Tiger' for the mac? Don't tell me I have to use >text edit all the time?? You can use Spotlight to find the file idle.pyw and use that as an IDE... Matt Feinstein -- Ther

Applying a function to a 2-D numarray

2005-05-16 Thread Matt Feinstein
see that this looks neat but probably generates several copies of the array, which is not so neat. Is there a better way? Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list

Re: Applying a function to a 2-D numarray

2005-05-16 Thread Matt Feinstein
[ 1, 2, 3, 4, 5], >[ 6, 7, 8, 9, 10], >[11, 12, 13, 14, 15], >[16, 17, 18, 19, 20]]) > >Is this not what you wanted? The problem is that I chose an example function that's too simple. Non-trivial functions aren't so polymorphic, unfortunately. Sorry

Re: Applying a function to a 2-D numarray

2005-05-16 Thread Matt Feinstein
in one place in the 'genfunc' function-- I can change that and everything else stays the same. However, I realize that the gain in flexibility means a loss in efficiency. I'm limited to not-so-efficient ways of. For this work, it's OK-- I just want to know the best not-so-effici

Unhappy with numarray docs

2005-06-01 Thread Matt Feinstein
mmediately have the degree of clairvoyance needed to figure out that import numarray.numarryall as num was required for the critical step of associating an array with a MemmapSlice. Grr. Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.

Re: Unhappy with numarray docs

2005-06-01 Thread Matt Feinstein
o? It's plainly inappropriate for me to write documentation for a module that I'm still struggling to learn. Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unhappy with numarray docs

2005-06-01 Thread Matt Feinstein
ssage will be simply missed by the >appropriate people, which would be a shame. They are generally very >responsive to user requests and constructive criticism. Done. Thanks for the suggestion. Matt Feinstein -- There is no virtue in believing something that can be proved to be true.

PIL and GeoTIFF

2005-06-09 Thread Matt Feinstein
a GeoTIFF file with PIL means poking around in the PIL TIFF plugin file which I'm a little wary of doing. Also, I don't see any clear description in the PIL documentation on how to add specified TIFF keys to a saved file. Any words of wisdom about either of these questions would be much

Re: PIL and GeoTIFF

2005-06-09 Thread Matt Feinstein
my purposes. If a couple of lines of Python added to what I've already got will do the job, I'd rather do that then compile and learn yet another API. Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list

Problem with 'struct' module

2005-06-14 Thread Matt Feinstein
Using the 'struct' module (Win32, python version 2.4.1)-- The library documentation says that 'no alignment is required for any type'. However, struct.calcsize('fd') gives 16 while struct.calcsize('df') gives 12, implying that double precision data has to

Re: Problem with 'struct' module

2005-06-14 Thread Matt Feinstein
the difference between "@" and "=": both use native >byte order, but the size and alignment of the latter is >standardized. Thanks. I clearly missed the point of the explanation... Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listinfo/python-list