Merge pull request #528 from HashSplat/master
Fixed downsample inf image issue
This commit is contained in:
commit
1206981107
@ -379,6 +379,10 @@ class ImageItem(GraphicsObject):
|
|||||||
image = fn.downsample(self.image, xds, axis=axes[0])
|
image = fn.downsample(self.image, xds, axis=axes[0])
|
||||||
image = fn.downsample(image, yds, axis=axes[1])
|
image = fn.downsample(image, yds, axis=axes[1])
|
||||||
self._lastDownsample = (xds, yds)
|
self._lastDownsample = (xds, yds)
|
||||||
|
|
||||||
|
# Check if downsampling reduced the image size to zero due to inf values.
|
||||||
|
if image.size == 0:
|
||||||
|
return
|
||||||
else:
|
else:
|
||||||
image = self.image
|
image = self.image
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user