|
Re: masked arrays and nd_image: msg#00023python.numeric.general
> I did not write nd_image with masked arrays in mind, I imagine it won't One can always try :-) > . If you just want to mask out some of the results, apply the mask If you do it in python, you feed generic_filter1d a function, if you make that a method of an object, your mask can be accessed as a attribute of your object. If you want to do it in C, you can pass a CObject that holds the function pointer to a callback function with prototype FilterFunction1D. Additionally you can set the description pointer of the same CObject to an arbitrary pointer, which is passed at every call to the callback function. You can use that to store additional information for you filter, such as the mask. See the example in the manual which is written for the shift function, but the principle is the same. Cheers, Peter ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: masked arrays and nd_image: 00023, Todd Miller |
|---|---|
| Next by Date: | Pure Python NumPy-like module?: 00023, Chris Barker |
| Previous by Thread: | Re: masked arrays and nd_imagei: 00023, Curzio Basso |
| Next by Thread: | Re: masked arrays and nd_image: 00023, Todd Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |