Gabor filter for Batch Processing

13 views
Skip to first unread message

arun kumar

unread,
May 21, 2015, 12:52:30 PM5/21/15
to bonej-users-a...@googlegroups.com
Kindly help in the code for batch processing of Gabor filter:

dir1 = getDirectory("Choose Source Directory ");
list = getFileList(dir1);
setBatchMode(true);
for (i=0; i<list.length; i++) {
showProgress(i+1, list.length);
open(dir1+list[i]);
title = getTitle();
run("Gabor Filter","Number of orientations=8","number of Scales=4");
close();
}

michae...@gmail.com

unread,
May 21, 2015, 3:28:23 PM5/21/15
to bonej-users-a...@googlegroups.com
Hi Arun,

This kind of general question is best posted at the main ImageJ list.

http://imagej.nih.gov/ij/list.html

Michael
> --
> You received this message because you are subscribed to the Google Groups "BoneJ Users and Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bonej-users-and-dev...@googlegroups.com.
> To post to this group, send email to bonej-users-a...@googlegroups.com.
> Visit this group at http://groups.google.com/group/bonej-users-and-developers.
> For more options, visit https://groups.google.com/d/optout.
>

--
Sent from my Jolla

Michael Doube

unread,
May 22, 2015, 2:59:20 AM5/22/15
to bonej-users-a...@googlegroups.com
Hi Kumar,

You should state what you are trying to do and what your problem is. This information is very useful to those who would help you. I *guess* that what is going wrong is that you see no output.

You need to save the output of your filter to a file in a directory. You will need to set up a dir2 with getDirectory() before the for(){} loop and run a save command (look at the documentation, http://rsbweb.nih.gov/ij/developer/macro/functions.html) for each image after it has been filtered and before you close it.

Michael
Reply all
Reply to author
Forward
0 new messages