Login  Register

Re: "Block Matching Correspondences" Plugin Run Via Macro

Posted by GP on Jan 14, 2017; 12:05pm
URL: http://imagej.273.s1.nabble.com/Block-Matching-Correspondences-Plugin-Run-Via-Macro-tp5017882p5017893.html

Hie!

Thanks for noticing but its an inactive statement I forgot to delete it . Sorry about that.
Please let me know if you find any other loophole or ideas. 

Best Regards,

On Sat, Jan 14, 2017 at 11:48 AM, Volko Straub [via ImageJ] <[hidden email]> wrote:
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],&quot;tif&quot;) ||
> endsWith(list[i],&quot;TIF&quot;)){
>        open(dir1+ list[i]);
>        TargetImg= getTitle();
>        open(&quot;/Users.../temp/WE00001---CO2_qmle.tif&quot;);
>        //tt= selectWindow(TargetTitle);
> run(&quot;Extract Block Matching Correspondences&quot;,
> &quot;source_image=WE00001---CO2_qmle.tif target_image=&lt;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
To unsubscribe from "Block Matching Correspondences" Plugin Run Via Macro, click here.
NAML



--
Gunjan Pandey