Group Abstract Group Abstract

Message Boards Message Boards

0
|
174 Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Does Mathematica image processing has a built in function to correct pincushion of an image?

Posted 8 days ago

I have a bunch of microlens images, - see attached image for one -, which are pincushioned and rotated. All need -0.1 Pinch with Radius 2.0 if I use GIMP's Distorts->Whirl and Pinch.... filter and also a -2.5 degree rotation.
I hoped, Mathematica's Image Processing has a built in function for this kind of lens correction, but looks like it does not have.
What other modes are possible to process 1000 images in a batch?

Attachments:
POSTED BY: Janos Lobb
2 Replies

Mathematica can handle arbitrary transformations:

rm=RotationMatrix[15Degree]
ImageForwardTransformation[image,rm.Normalize[#]Norm[#]^1.1&,DataRange->{{-1,1},{-1,1}}]

where image is the source image. Here it is rotated 15 degrees and there is a pincushion kinda correction applied. The exponent will have to be modified and so forth…

POSTED BY: Sander Huisman
Posted 7 days ago

Thanks a lot, for giving me a good direction. Best, János

POSTED BY: Janos Lobb
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard