Results 1568 comments of John Cupitt

There's some code here for fetching small patches from a large slide for training: https://github.com/libvips/pyvips/issues/100#issuecomment-493960943 If you want larger patches (1024 x 1024 etc.) it'd probably be faster to use...

Yes, openslide images can have missing sections (where the camera didn't record any pixels), so images are RGBA. You can use `flatten()` to force them to RGB. You might want...

Thanks for reporting this @EKami. I see this too on Ubuntu: ``` $ conda create --name test python=3 pyvips ... $ conda activate test (test) $ which python /home/john/miniconda3/envs/test/bin/python (test)...

Hello @2h4dl, Your sigma is too small -- try 1. ```python #!/usr/bin/python3 import sys import pyvips x = pyvips.Image.new_from_file(sys.argv[1]) x = x.resize(0.2718) y = x.sharpen(sigma=1, x1=1, y2=10, y3=20, m1=0, m2=3).colourspace("srgb")...

Oh, I see what you mean, yes, it should work with 0.5. I think this is because of a change in the way the int convolution path works. I'll see...

I increased the precision of int convolution for sharpen and with sigma 0.5 I now see: ![x](https://user-images.githubusercontent.com/580843/63838447-47889200-c975-11e9-8972-4818fdd7d41e.png) Thanks very much for pointing this out! This change will be in 8.8.2....

Sorry @nishantsabrinis, I missed this question. No, TIFF pyramids are always largest layer first, I don't think you can do what you want.

The main docs for arrayjoin have more detail: https://libvips.github.io/libvips/API/current/libvips-conversion.html#vips-arrayjoin You're right that they could mention `colourspace`.

Sorry, I'm not sure I understand. Could you explain a little more?