Visual grep doesn't find anything

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

Visual grep doesn't find anything

Ja
Hello,
Does anybody have any idea how Visual grep plugin works? I opened image, copied small part of it to clipboard, then set it as needle and it doesn't find anything. Why is that? Anybody managed to make it work?
Best regards,
Flash

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Visual grep doesn't find anything

dscho
Hi Flash,

On Mon, 27 Jan 2014, Ja wrote:

> Does anybody have any idea how Visual grep plugin works? I opened image,
> copied small part of it to clipboard, then set it as needle and it
> doesn't find anything. Why is that? Anybody managed to make it work?

Visual grep tries to accelerate things by downsampling both needle and
haystack a couple of times and find candidate locations in the coarser
resolutions. If that does not find the correct locations, finer resolution
steps will necessarily fail.

Please also keep in mind that the provided information is insufficient
[*1*] for the author of the plugin (read: myself) to get a clear picture
what might go wrong.

If you require further help [*2*], you might want to consider offering an
example image with a recorded macro of the process that "doesn't find
anything".

Ciao,
Johannes

Footnote *1*: A good, but slightly long, read on what makes a good bug
report (and why this is something you want to do instead of the
alternative) can be found here:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

Footnote *2*: A good, but slightly long, read on why it makes more sense
to describe in detail 1) what you want to accomplish, 2) what you tried,
3) what unexpected behavior you encountered, instead of stating that it
did not work for you and asking for a solution, i.e. follow the principles
of systematic scientific process even when asking for help on a mailing
list, can be found here: http://mattgemmell.com/what-have-you-tried/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Ja
Reply | Threaded
Open this post in threaded view
|

Re: Visual grep doesn't find anything

Ja
I tried every configuration I could imagine and still nothing found. Could You get it to work at least once on any image?
Dnia 15 lutego 2014 18:12 Johannes Schindelin <[hidden email]> napisał(a):
Hi Flash,
On Mon, 27 Jan 2014, Ja wrote:
> Does anybody have any idea how Visual grep plugin works? I opened image,
> copied small part of it to clipboard, then set it as needle and it
> doesn't find anything. Why is that? Anybody managed to make it work?
Visual grep tries to accelerate things by downsampling both needle and
haystack a couple of times and find candidate locations in the coarser
resolutions. If that does not find the correct locations, finer resolution
steps will necessarily fail.
Please also keep in mind that the provided information is insufficient
[*1*] for the author of the plugin (read: myself) to get a clear picture
what might go wrong.
If you require further help [*2*], you might want to consider offering an
example image with a recorded macro of the process that "doesn't find
anything".
Ciao,
Johannes
Footnote *1*: A good, but slightly long, read on what makes a good bug
report (and why this is something you want to do instead of the
alternative) can be found here:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Footnote *2*: A good, but slightly long, read on why it makes more sense
to describe in detail 1) what you want to accomplish, 2) what you tried,
3) what unexpected behavior you encountered, instead of stating that it
did not work for you and asking for a solution, i.e. follow the principles
of systematic scientific process even when asking for help on a mailing
list, can be found here: http://mattgemmell.com/what-have-you-tried/
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Visual grep doesn't find anything

dscho
Hi Flash,

please note that I fix the layout of the mail I quote here this time, I
won't do it again. Likewise, I advise you this once again to click

> > http://mattgemmell.com/what-have-you-tried/

and read this once again, because it appears to me that the 20 minutes I
spent on working on your problem were pretty much 19 minutes more than you
did. At least there is not the slightest indication to the contrary in
your reply.

On Sat, 15 Feb 2014, Ja wrote:

> Dnia 15 lutego 2014 18:12 Johannes Schindelin
> <[hidden email]> napisał(a):
> >
> > On Mon, 27 Jan 2014, Ja wrote:
> >
> > > Does anybody have any idea how Visual grep plugin works? I opened image,
> > > copied small part of it to clipboard, then set it as needle and it
> > > doesn't find anything. Why is that? Anybody managed to make it work?
> >
> > Visual grep tries to accelerate things by downsampling both needle and
> > haystack a couple of times and find candidate locations in the coarser
> > resolutions. If that does not find the correct locations, finer
> > resolution steps will necessarily fail.
> >
> > Please also keep in mind that the provided information is insufficient
> > [*1*] for the author of the plugin (read: myself) to get a clear
> > picture what might go wrong.
I have to note that this is still true.

> > If you require further help [*2*], you might want to consider offering an
> > example image with a recorded macro of the process that "doesn't find
> > anything".
>
> I tried every configuration I could imagine and still nothing found.
> Could You get it to work at least once on any image?

Please recognize that ignoring my suggestions rather blatantly is outright
rude, in particular since you ask me for help and seem to be unwilling to
follow even the gentlest advice: I asked for details and was rewarded with
a one-liner that cannot have taken more effort than 30 seconds to type and
send, containing a statement ("I tried every configuration") that
challenges my intelligence.

Since Visual grep is my project, though, I did what I would have
considered to be the natural first thing for any bug reporter to do --
without having to be prompted for it: a detailed description how to
reproduce the problem.

My macro (which is the most complete description you can provide for
ImageJ):

run("Close All");
run("Clown (14K)");
id = getImageID();
makeRectangle(182, 70, 28, 26);
run("Duplicate...", "title=eye.jpg");
selectImage(id);
run("Select None");
run("Visual grep", "needle=eye.jpg tolerance=5000 pyramidlevel=1");

This works for me.

Hth,
Johannes

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html