Generic image coordinate transformation using a matrix

Johannes Schönberger jsch at demuc.de
Wed Sep 10 13:44:06 EDT 2014


Mark, can you check, that this works for you?

https://github.com/scikit-image/scikit-image/pull/1142

Johannes Schönberger

On Sep 10, 2014, at 1:23 PM, Johannes Schönberger <jsch at demuc.de> wrote:

> Hi Mark,
> 
> You can do this with `ndimage.map_coordinates`, see https://github.com/scikit-image/scikit-image/blob/master/skimage/transform/_geometric.py#L1134 for an usage example.
> 
> But we should add this feature, so that `warp` also directly takes the coordinates. I opened a new issue for this: https://github.com/scikit-image/scikit-image/issues/1141
> 
> Johannes Sch önberger
> 
> On Sep 10, 2014, at 11:06 AM, Maik Riechert <maik.riechert at arcor.de> wrote:
> 
>> Hi,
>> 
>> When I want to undistort photographs I use the lensfunpy library (https://pypi.python.org/pypi/lensfunpy) which provides me with a coordinates array of shape (h,w,2), that is for each input pixel it provides the undistorted pixel location. When using OpenCV I can do undistortedImage = cv2.remap(image, undistCoords, None, cv2.INTER_LANCZOS4). I saw that there is the skimage.transform.warp function but I'm not sure how or if I can use that in my case. I would be glad for some directions.
>> 
>> Thanks
>> Maik
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups "scikit-image" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe at googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to the Google Groups "scikit-image" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.




More information about the scikit-image mailing list