http://imagej.273.s1.nabble.com/Block-Matching-Correspondences-Plugin-Run-Via-Macro-tp5017882p5017899.html
this was just to make the macro run. Anyway, looks like there are issues
when you try to pass your arguments. See macro documentation of 'run'
). I suspect
cause problems. The ; is probably also unnecessary and the wildcard
character '*' at the end might cause further problems. If you only want
an if-statement.
> 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],"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
>> To unsubscribe from "Block Matching Correspondences" Plugin Run Via Macro, click
>> here
>> <
>> .
>> NAML
>> <http://imagej.1557.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>