Hi,
There appears to be a mismatch between the variable name used by
getTitle() and the subsequent call of selectWindow(). Your getTitle()
call assigns the image name to a variable called TargetImg. However,
your selectWindow call uses a variable TargetTitle, which is not defined
in your macro.
Hope this helps,
Volko
On 14/01/2017 02:09, GP wrote:
> 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
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
If you reply to this email, your message will be added to the discussion below:http://imagej.1557.x6.nabble.com/Block-Matching- Correspondences-Plugin-Run- Via-Macro-tp5017882p5017891. html
Free forum by Nabble | Disable Popup Ads | Edit this page |