Feature request for "Import Image Sequence" function

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Feature request for "Import Image Sequence" function

lechristophe
Dear ImageJ listers,

I would like to kindly ask for a feature (that's why I directly CCed Wayne).
Would it be possible to have options for differently-sized images in the
"Import Image Sequence" function. Something similar to the "Images To Stack"
function that proposes to scale or center the images in the Import Image
Sequence dialog. That would mean parsing the folder to get the images size,
or have an intermediate stage where all images are open before making a
stack, so maybe this is not easy to do. Anyway that would be nice.

Thanks a lot,

Christophe
Reply | Threaded
Open this post in threaded view
|

Re: Feature request for "Import Image Sequence" function

lechristophe
I guess this macro will do it for now :

macro "Import Different Sizes" {
DIR_PATH=getDirectory("Select a directory");
 ID=getString("Name contains", "put string here");
FILE_LIST=getFileList(DIR_PATH);
 setBatchMode(true);
for (i=0; i<FILE_LIST.length; i++) {
if (indexOf(FILE_LIST[i], ID)!=-1) {
 open(DIR_PATH+FILE_LIST[i]);
}
}
 run("Images to Stack", "method=[Copy (center)] name=Stack title=[] use");
setBatchMode("exit and display");
}



On Fri, Nov 12, 2010 at 11:05, Christophe Leterrier <
[hidden email]> wrote:

> Dear ImageJ listers,
>
> I would like to kindly ask for a feature (that's why I directly CCed
> Wayne). Would it be possible to have options for differently-sized images in
> the "Import Image Sequence" function. Something similar to the "Images To
> Stack" function that proposes to scale or center the images in the Import
> Image Sequence dialog. That would mean parsing the folder to get the images
> size, or have an intermediate stage where all images are open before making
> a stack, so maybe this is not easy to do. Anyway that would be nice.
>
> Thanks a lot,
>
> Christophe
>