Group Abstract Group Abstract

Groups are a flexible way of organizing people and discussions on Wolfram Community.
Stay on top of important topics and build connections by joining Groups relevant to your interests. Put new discussions in front of the right people by posting them to a related Group.

Message Boards Message Boards

0
|
7.4K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Import images, use the GradientOrientationFilter and export them?

Posted 8 years ago
POSTED BY: Pushkar D
2 Replies

There are many ways you can do that.

Here is one:

pathToFiles = "/yourPath/..";
SetDirectory[pathToFiles];
newPath = FileNameJoin[{pathToFiles, "newPath"}];
If[!DirectoryQ[newPath],
	CreateDirectory[newPath];
];
files = FileNames["*.jpg", pathToFiles];
Export[FileNameJoin[{newPath, FileNameTake[#, -1]}], ImageAdjust[GradientOrientationFilter[Import[#], 4]]] & /@ files
POSTED BY: Mikayel Egibyan
Posted 8 years ago

Thank you

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