kwimage issueshttps://gitlab.kitware.com/computer-vision/kwimage/-/issues2021-12-16T10:54:07-05:00https://gitlab.kitware.com/computer-vision/kwimage/-/issues/8Bug with shear in kwimage.Affine2021-12-16T10:54:07-05:00Jon CrallBug with shear in kwimage.AffineIn kwimage < 0.8.0 there is a serious bug in kwimage.Affine when specifying a transform with a shear component.
The reconstruction (`kwimage.Affine.affine`) was using a definition of shear from scikit-image, but the decomposition used a...In kwimage < 0.8.0 there is a serious bug in kwimage.Affine when specifying a transform with a shear component.
The reconstruction (`kwimage.Affine.affine`) was using a definition of shear from scikit-image, but the decomposition used an incompatible formulation from SE (https://math.stackexchange.com/a/3521141/353527).
This means that when there were repeated decompose -> reconstruct -> decompose operations the resulting affine matrix would change and become invalid.
This issue has been fixed in 0.8.0 but requires deprecation of the existing shear parameter. Use `shearx` instead to get an unambiguously correct solution.
If there is no shear then there shouldn't be any issue. Also if you use Affine.__json__ instead of Affine.concise that will result in a serialization that can be reconstructed correctly. The only place where the bug causes wrong results is if you serialized with a matrix with a shear with Affine.concise, and then reloaded it.
See Also:
dev/check_simple_affine_decomp.py
https://math.stackexchange.com/questions/612006/decomposing-an-affine-transformationJon CrallJon Crallhttps://gitlab.kitware.com/computer-vision/kwimage/-/issues/7imwrite gdal tif is uncompressed2021-10-23T19:14:46-04:00Ajay Upadhyayaimwrite gdal tif is uncompressedWhen using the default "auto" compression with imwrite gdal when writing a ".tif" file, it does not compress the file. I suggest "deflate" as a sensible choice for tif "auto" compression.When using the default "auto" compression with imwrite gdal when writing a ".tif" file, it does not compress the file. I suggest "deflate" as a sensible choice for tif "auto" compression.https://gitlab.kitware.com/computer-vision/kwimage/-/issues/6imwrite dimensions inconsistent2021-08-30T17:04:53-04:00Ajay Upadhyayaimwrite dimensions inconsistentWhen writing a 750x952 image with 15 bands with imwrite:
backend gdal with array dims (height, width, num_bands) produces the correct output.
But backend skimage produces a 952x15 image with 750 bandsWhen writing a 750x952 image with 15 bands with imwrite:
backend gdal with array dims (height, width, num_bands) produces the correct output.
But backend skimage produces a 952x15 image with 750 bandshttps://gitlab.kitware.com/computer-vision/kwimage/-/issues/5Undeclared dependency in latest release: cv22021-06-10T11:49:52-04:00Bane SullivanUndeclared dependency in latest release: cv2https://github.com/ResonantGeoData/ResonantGeoData/pull/365/checks?check_run_id=2416614777#step:9:41
```
import kwimage
.tox/test/lib/python3.8/site-packages/kwimage/__init__.py:47: in <module>
from .im_cv2 import (convert_color...https://github.com/ResonantGeoData/ResonantGeoData/pull/365/checks?check_run_id=2416614777#step:9:41
```
import kwimage
.tox/test/lib/python3.8/site-packages/kwimage/__init__.py:47: in <module>
from .im_cv2 import (convert_colorspace, gaussian_patch, imresize, imscale,)
.tox/test/lib/python3.8/site-packages/kwimage/im_cv2.py:8: in <module>
import cv2
E ModuleNotFoundError: No module named 'cv2'
```
can we make this optional, as `cv2` isn't exactly lightweight?
----
or can this be added to the dependencies such that `pip install kwimage; python -c "import kwimage"` workshttps://gitlab.kitware.com/computer-vision/kwimage/-/issues/4Need Help Building on Windows2021-07-02T11:33:21-04:00Jon CrallNeed Help Building on WindowsAlthough I'm using scikit-build I'm having a tough time getting C extensions to build on windows correctly.
I would appreciate any help in getting a set of instructions that work reliably.Although I'm using scikit-build I'm having a tough time getting C extensions to build on windows correctly.
I would appreciate any help in getting a set of instructions that work reliably.