API for 3D modeling in c# - c#

I want to know what API can i used to create an 3D from sequence of images. my project is to calculate liver volume through CT images. At the moment i'm searching for an API which can generate the liver model via sequence of extracted liver regions. could u please suggest API asap? thanks in advance!

A common option for this is VTK. Kitware has a C# API for VTK called ActiViz.
It allows you to build the model from the images, as well as do volume or geometrical rendering of the features, subsetting, volume calculation, etc.

XNA game studio might be a good for you, its a game platform but you could create a very nice looking stand alone application with it, or you could host the XNA part within an existing Forms Application:
Its c#
Its Free and fully supported by microsoft
http://www.microsoft.com/download/en/details.aspx?id=23714
Its relatively easy to get started
It 3d Hardware accelerated
It supports a number of platforms (PC, Phone and Xbox)
You can integrated/host the 'game' inside an existing forms application
http://create.msdn.com/en-US/education/catalog/sample/winforms_series_1
There are lots of tutorials and samples available:
http://msdn.microsoft.com/en-us/library/bb203897(v=xnagamestudio.31).aspx
http://create.msdn.com/en-US/education/catalog/?contenttype=0&devarea=6&platform=0&sort=1

Related

How can I detect faces in images using WPF?

I am using WPF application for photo gallery and I would like to add face recognition to my app.
Any suggestions to do that?
WPF itself won't help yo at all: it's just a way of defining what happens in a Window. You would need to add code utilising a suitable Machine Learning library capable of detecting faces in photos.
I won't go into how the ML libraries need to be set up and trained, or how there might be one already suitably primed available (I don't know). That's a rather large subject and is nothing to do with any presentation layer technology.

Is it possible to port a WPF 3D app to UWP / UAP

I wrote an WPF app using all the 3D stuff of WPF which contains several Views displaying 3D data. IMHO WPF is not the platform for further development of the app so I am searching for some ways to port it to a Universal App/Windows Store App/UWP.
The way, Microsoft is promoting, is to use Unity meaning a complete redevelopment and complicated workflows because it should be a 2D-App with some 3D views.
The other way I was looking at way using Helix-Toolkit, because it does not just offer the WPF-way of displaying 3D but also the DirectX way using SharpDX. Unfortunately the progress concerning UWP is pretty low and not currently usable in the extend I need (like displaying custom geometries etc.).
Is anybody out there who got the same problem and found a workaround?
TY!
You may also like to consider Monogame. Like Helix-Toolkit it's based on SharpDX (when it's on Windows anyway). It's not quite as "componentised" as Helix-Toolkit but it's possible to make your app UWP-first and Monogame-second.

Real time 3d rendering navigation

I have no idea at all about the 3D Visualization ,and i want to create an application ,the application idea depends totally on the 3D structure .
I'll do my best to clarify my question to avoid considering it vague .
The main goal of my application is the (navigation) part in 3D environment .I want to upload maps of a specific area and the application allow to guide the user to its destination.(real time 3d rendering).
The application should work on kiosk ,smart phones and on web.(multiple platforms).
The following video clarify what i want to do exactly :
3D wayfinder
Now I want to know a start point to begin without reinventing the wheel,if there are some frameworks should i learn about first?
I'm a.net developer(asp.net) and i begin to learn CMS (Joomla),so it 'll be great to find APIs or frameworks near to this area to achieve my goal as soon as possible.
From requirements you specified, I would like to advice to look at Unity3D.
Unity3D will help to develop application which will work on almost all major platforms including kiosk, smart phones and on web.
You can develop using C# language which should be familiar to you.
There are number of projects which aims similar goal as rendering 3D map. There are "Google Maps for Unity" plugin and I can advise to look at Displaying Maps in Unity3D post.
Unity can be integrated to Joomla if necessary
Another option would be to build the front-end of the app using HTML5 and do the 3D using Three.js http://threejs.org/
Your back-end could serve up the map and navigation data to the front-end and you render everything in the browser or in your HTML5 smartphone app. If you need to update information in your visualization or load a new location dynamically, this can be done with a simple AJAX call and your callback would add the new info into your Three.js scene.
Forget about what others suggest you in regards to looking at 3D frameworks. Mapping and navigation is a complexity of it's own - 3D frameworks like unity will give you 3D. But they won't give you GIS. Depending on your requirements, you could check Micello for 2D mapping and Deep Map for mobile 3D mapping (http://www.deep-map.com/en). They also help you with creating the maps - which is something you should consider for beforementioned reasons.
You can use OpenCV library in C# for image processing and get help from HTML5 and AJAX .
Try X3DOM. Its a programming language that can be used in applications, web browsers, and much more. And the language is ALOT like HTML and JavaScript. In fact, you can use JavaScript and HTML to access the 3D space in X3DOM.
The website for this language is: x3dom.org

Building a poker game with shareable c# code base for Windows, Windows RT and Windows Phone

What are my options if I want to target Windows XP and above desktop OS, Windows RT and Windows Phone 8 for a Poker app which includes both a substantial amount of GUI as well as graphics/animations. Would prefer the whole drawing to be hardware accelerated for a smooth experience.
We already have a C# & WPF based code base that we would like to use as the starting point for a shareable code base. I want suggestions that would allow us to utilize the existing code base which is already modular to a considerable extent. Moving to an entirely different platform is not an option at the moment.
I understand that Windows Phone 8 also supports C# + XAML for development. But is the drawing hardware accelerated?
If I plan to use MonoGame, would it be too tedious to build up the GUI bits?
Monogame is great engine. You can easily achieve resolution independent rendering with it so you can have solid coordinate system for your GUI textures which will nicely fit into virtualy any resolution. It is also quite flexible and cheap (android, iOs) comparing to other engines. The code is highly reusable across the different platforms. The most code differences are in input handling and file management which are usualy specific for different platforms.
The downside of it is that it lacks any editors and handy tools like in Unity engine. It is pure engine and you have to build/gather your own instruments for all the tasks you want to acomplish. So the task of creating the GUI can be tricky if you need to implement some complex stuff such as physics or some effects. But simple animated GUI is not a problem. There are also several GUI libraries with controls for Monogame:
https://nuclearwinter.codeplex.com/
https://xnagui.codeplex.com/
PS: For windows you can merge Monogame with WPF but i doubt you can successfuly use XAML interface in monogame for windows. It will likely be pure WPF or pure Monogame.
If you decide to stick with monogame feel free to look for my samples and tools collection at: http://panthernet.ru/forum/index.php?/topic/17-monogamexna-examples-v18/

Metro App with 2D Graphics in C#

I have done some looking and I can't figure out a good way to write a 2D tile/sprite based game in C# for Win8. According to the MSDN documentation:
You can use managed code languages like C# and Visual Basic to develop 2D (and lightweight 3D) games.
The problem is that I can't figure out how to do this. The reason I would like to use C# is because I already have a lot of code written for Windows Phone that I would like to reuse.
Can anyone point me to how I would write a fairly efficient 2D tile/sprite MetroUI game for Win8? The only thing I can find uses C++ and DirectX.
[EDIT]
To clarify I do not care too much what I use (WinRT, DirectX...) so long as I can submit to the app store, and write my code in C#.
If you are familiar with the DirectX API, you can use SharpDX available via http://sharpdx.org. It is basically exposing DirectX APIs into C#. From my understanding, if you are going to upload apps to the store, the SharpDX should be fine and pass compliance, but I would look into it further before going too deep.
Also, as of this time, not all of the features are available (like Direct2d not fully certified for Win8 Metro).
If your game uses simple graphics, you can use Drawing Library for Modern UI, it exposes a GDI+ like interface to be used in XAML/C#/VB.NET Windows 8 Modern UI applications, it works by drawing to a XAML Canvas.
If you're looking for something quick and easy check out the "Physics Helper XAML" project;
http://physicshelperxaml.codeplex.com/
It's based on the farseer engine, and comes with sample apps. There are a few games already released using it.
http://www.andybeaulieu.com/Home/tabid/67/EntryID/223/Default.aspx
Have a look at:
[XAML images sample] (http://code.msdn.microsoft.com/windowsapps/0f5d56ae-5e57-48e1-9cd9-993115b027b9/sourcecode?fileId=102748&pathId=677969581)
The page and samples give some code for NineGrid and WriteableBitmap Image manipulation.
You can now use Win2D (open source, released by Microsoft for metro/WinRT apps) which provides hardware-accelerated 2D graphics rendering.

Categories

Resources