Hi thanks for answering, but I thin I’m missing something else that is not related to socket transport. When I do this conversion in Python, simulating encoding and decoding I have the same problem. This is what I do on python and I also get the shape of the image, but it’s all filled with zeros. I know I’m missing something, maybe reshaping the array ? But I don’t know what it is exactly :
what makes you think those border pixels represent the entire image? numpy’s abbreviated output only shows you the first/last few elements of each dimension.
I can’t reproduce what you claim is happening, in fact, I can reproduce it working.
This is the entire test, there is nothing else besides the original image. What I’m doing is slicing it to get chunks of the image. This is why I’m wondering if I need to do something else after slicing, since imshow prints the slice in black and white correctly if I print it before processing it
as I said, this gets printed correctly by imshow, so I wonder how imshow does it internally to print the image and if it has something to do with encoding it to a certain format, but I’m totally lost here. thanks
Ok so it’s a matter of the format, since the ranges are not within the standards. Tiff is capable of such float ranges and it works, but I guess I need to transform those values to the accepted ranges for PNG or JPG. Thanks for your time