http://imagej.273.s1.nabble.com/Block-Matching-Correspondences-Plugin-Run-Via-Macro-tp5017882p5017891.html
getTitle() and the subsequent call of selectWindow(). Your getTitle()
call assigns the image name to a variable called TargetImg. However,
in your macro.
> Hie!
>
> I have concocted a rudimentary macro (below). The problem is that for some
> reason I can't specify the target image. I have tried several combinations
> of SelectWindow, selectImageiID etc commands but could not make it work.
>
> /run("Clear Results");
>
> dir1 = getDirectory("Choose Directory ");
> list = getFileList(dir1);
>
> setBatchMode(false);
> for (i=0;i<list.length;i++) {
>
>
> if (endsWith(list[i],"tif") ||
> endsWith(list[i],"TIF")){
> open(dir1+ list[i]);
> TargetImg= getTitle();
> open("/Users.../temp/WE00001---CO2_qmle.tif");
> //tt= selectWindow(TargetTitle);
> run("Extract Block Matching Correspondences",
> "source_image=WE00001---CO2_qmle.tif target_image=<b>TargetImg*
> layer_scale=1 search_radius=50 block_radius=50 resolution=24
> minimal_pmcc_r=0.10 maximal_curvature_ratio=1000
> maximal_second_best_r/best_r=1 use_local_smoothness_filter
> approximate_local_transformation=Rigid local_region_sigma=65
> maximal_local_displacement=12 maximal_local_displacement=3");
> close();
> } } /
>
> Kindly let me know what am I missing out here.
> Help will be much appreciated.
> Thanks a lot
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/Block-Matching-Correspondences-Plugin-Run-Via-Macro-tp5017882p5017890.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html