Distinguish the output link of a Condition node - flowchart

I am new to gojs and trying to play with flowchart example. The current example can't differentiate the output nodes of a Condition node and i want to fix it. Is there any way to distinguish them other than simple labeling them?

Thanks for pointing out the error in the sample. We have fixed the code in the sample -- please look again at the latest code at https://gojs.net/latest/samples/flowchart.html.

Related

How to find the file modification using change Journal in windows using c++

I want to find the file or directory changes using Change Journal in windows.. I want a complete example code in c++.. Can anyone explain what change journal is actually and help in this.?
Check out the post added by Harry Johnston, i think this will the best suitable answer for you. Please find his link How can I detect only deleted, changed, and created files on a volume? . It contains sample code to detect changes in the journal entries. To know more about journals you need to refer msdn link https://msdn.microsoft.com/en-us/library/windows/desktop/aa363798(v=vs.85).aspx

GNU Radio simulation stuck

I have attached a screenshot of my design here:
when I start simulating it stuck and only plot a few vectors of data.
I think it's becasue of variable time shift block, it's a hierarchy block, when I connect a constant source to i'ts float input the design works perfectly but when I connect output of short to float it does not work,
I think it's becasue Argmax block produces one output for every vector but the variable time shift needs that output constantly.
how can i fix this?
I've written an answer to this question that you also posted on the discuss-gnuradio mailing list (archive):
Hi Mohammad,
to try, you could just use the repeat block.
Best regards, Marcus
I hope that solved your issue, since I haven't heard back from you :)

clang matchers. find the corresponding node in ast by translation unit, line number, and column

hello and thx in advance for your help.
i recently made some efforts to understand the clang matching system and got stuck on a specific problem.
having a source file in an editor with a cursor set to a position in a line, thus having a precise location, is there a way to find, and return, the corresponding node in the clang ast by this information?
as user scenario think of me clicking into the code in an editor and identifing the exact node and type of node from the corresponding ast.
i think it is in some way possible using a visitor, but can i use the matching mechanism too?
i studied the given matchers, but i don't seem to get anywhere...
thx
frithjofh
Resolved. I wasn't aware of cursors, thanks to Benjamin for pointing me in the right direction.See cursors for the function clang_getCursor which, providing it with a precise location in source code, returns the corresponding cursor into the AST, which then can be queried for kind, name, children, and location of the referred to node.Sorry too for my English, i am not a native speaker.Greetings too to the sad, sorry, and bitter lad who down voted my question without even stating any reason. That is ever so encouraging for new comers like me.

Extract one object from set of objects

I want to extract one leaf from bunch of leaves to detect its features using OpenCV (C++). So first I tried to find edges of the image and extract one object. See my question here., but it seems that this way is not going to work. What I want to do is just extract one leaf from an image taken in real environment of the plant (See the following example image this is only an example. The image that is going to process is not known previously user has to take an image and to upload to the system)
As an example consider I want to cut off the leaf marked with red line.
Then I can proceed to identify features of that leaf. Can any one please suggest a step by step method to do this. I'm using OpenCV and C++ as the language.
Thank you in advance.

Error after mosaicing face in opencv and c++

Following my previous post Mosaicing face problems in opencv , everything was working fine until I tried it again today and I get this error . Everything seems to be alright but I am confused why I am getting this error. Can anybody help please?
thanks
The error says that the source vector or the destination vector of some algorithm does not have enough data required by a particular algorithm present in imgwarp.cpp
As I have no idea of your code, I assume that you may be using getAffineTransform or perspective transform.
Probably the assertion failure must be from getAffineTransform. It must require 3 points for its input and output. Have a look at the code on how these points are selected.
As you mentioned that the code was previously working, there is a possibility that the input images are changed, mostly the new one is with a different dimension.