I want to develop a tool that will assess the quality of a video. I did some R&D on this and found an interface called "IQualProp", that is part of DirectShow API. I am not trying to get a sample code in C# on how to use this interface, but i am not finding anywhere. There are samples in c++ to use this "IQualProp", but not in C#. Any help on this will be great.
IQualProp iqp = your_obj as IQualProp;
After doing this you can access all the properties of the interface.
Related
I am using Microsoft Visual C# 2010. I am trying to recognize human motion and want to use pca to reduce dimensionality. Can anyone tell me how to add built in class: PrincipalComponentAnalysis.c.
Well, if you're trying to add a C library into C# and use it in the same way you do (for example) System.Windows, you're going to have a lot of difficulty, because that's simply not possible.
If you want to call C DLLs from C#, I'd take a look at this article.
I want to have a program which generates diagrams for trees, ones looking pretty much like this
It is to be a part of a project I am working on using C#, but if there is a way to make a Python or Javascript do it, that be okay as well. Maybe some C# library, or JavaScript/Python library with parameters I can provide to it ?
The most important thing, regardless of the programming language, is that it be easy to use.
You may want to use pydot, which is an interface to the Graphviz .DOT format visualization software. As outlined in the Graphviz guide, the .DOT format lets you design graphs similar to the one you posted as well as more much more sophisticated ones.
Here's an example from the pydot doc:
import pydot
graph = pydot.Dot('graphname', graph_type='digraph')
subg = pydot.Subgraph('', rank='same')
subg.add_node(pydot.Node('a'))
graph.add_subgraph(subg)
subg.add_node(pydot.Node('b'))
subg.add_node(pydot.Node('c'))
If you're looking at Javascript instead, canviz is a well-respected library that allows you to draw .DOT graphs to browser canvases.
There is a C# wrapper around the Graphviz bindings.
I'm working on a project that generates trees with Graphviz (not in C# though) and it works great.
I am making an application for editing images. I tried using ImageMagickNET, but can't figure out how to use the API - or if it even works with C#.
Does anybody know ho to use this API or if it works with c#?
ImageMagick.NET appears to be a managed C++ wrapper around the ImageMagick API. As such it should be usable by any .NET language (VB.NET, C#, even IronPython). I don't have experience using it at all but based on what I see in the code in their CodePlex repo I don't see any reason it wouldn't work.
Is there a way to do this in MonoTouch?
http://definelabs.com/blogs/?p=17
I don't understand much of that Objective-C code...
I wrote an article on this: Accessing iPhone Album
I know this is an old post, but there is a demo app that I've created that lets you do the features Nicklas Savonen requested.
What this demo app does is, it will get the list of images from AssetLibrary and will load them in a UItableview, then maintain a selection status, the Tick image is just an overlay image that will be hidden/visible based on selection.
The following link explains the basic steps you need to take, since it would be difficult to understand by the project:
http://helpalittle.wordpress.com/2014/03/28/monotouch-multiple-image-picker/
And you can find the complete solution at the following path: https://onedrive.live.com/redir?resid=697F540B0A2F1506%21107
hope this helps.
I know am not helping much at this point, but you need to learn at least a bit of ObjectiveC to be able to read it. The issues is, that all the samples and plenty of resources for iOS development is in ObjC and converting it to Monotouch is not that complex, in fact all the constructs there have C# equivalent (the blocks in the sample you posted, are in fact anonymous methods).
More to the point, multiselection of the images is done in the iOS SDK 4.x, if I find some spare time this would be a nice little exercise for my blog.
As to what APIs to check for this, these are asset library APIs:
ALAssetsLibrary & ALAsset & ALAssetsGroup
in Monotouch there are classes in (pseudo code):
using MonoTouch.AssetsLibrary;
MonoTouch.AssetsLibrary.ALAsset;
MonoTouch.AssetsLibrary.ALAssetsLibrary;
MonoTouch.AssetsLibrary.ALAssetsGroup;
hope you guys could share some light with me..are you guys aware of lightscribe? i have the sdk document and am tasked to integrate LightScribe functionality with c#.can anyone of you guide me or mayb have some examples to show me?
I haven't used the lightscribe api myself. But it appears to be a C++ API, what you will need to do is write a C# wrapper around it (using p/invoke)
A quick google search also turns up this wrapper library that someone has already done, have a look at the source in that and you will see the techniques used.