Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Using boolean mask in Numpy for 3D
Post: Using boolean mask in Numpy for 3D

I can generate a 8 x 8 x 4 matrix as follows using Numpy: px = np.random.randint(1,254, (8,8,4),dtype=np.uint8) This gives me 64 groups where each group has 4 values. This would be a very smal...
IlikePi General Coding Help 0 1,526 Nov-14-2020, 10:08 PM
    Thread: Getting a list in pillow
Post: RE: Getting a list in pillow

I found a solution in numpy import numpy cyan = im.getdata(0)It seems to work much faster than loading via for loops.
IlikePi General Coding Help 1 1,247 Nov-01-2020, 05:26 PM
    Thread: Getting a list in pillow
Post: Getting a list in pillow

with Image.open("test.png") as im: print(im.format, im.size, im.mode) im = im.convert("CMYK")I now have picture data converted to CMYK. I can then do something like Make double for loops and ...
IlikePi General Coding Help 1 1,247 Nov-01-2020, 04:04 PM
    Thread: Stretching a curve and modifying it
Post: Stretching a curve and modifying it

I have used numpy and matplotlib a little. Here is my challenge. I have about 5000 data points that make a parameter curve. The x values are time units and are evenly spaced and need to remain that wa...
IlikePi Data Science 0 1,963 Feb-01-2020, 03:41 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020