Science topic
C# - Science topic
Explore the latest questions and answers in C#, and find C# experts.
Questions related to C#
A computer program begins its life cycle as text that follows the rules of a selected programming language, such as C#, Java, Python, etc. To decrease costs and improve the performance of the development process, the program text is often organized into autonomous fragments addressing specific responsibilities. There are many design patterns applicable to implementing typical algorithms, but the layered architecture is well-suited to be applied to the program as a whole. The main challenge is understanding the outcomes of applying the layered design pattern to programs, namely to a text compliant with a selected programming language. System architecture and application architecture topics are out of this discussion scope.
Assuming that a program is just text how to implement layered architecture?
Let's collect the best places /platforms /tools that offer affordable solutions to teaching coding to kids starting at age 5. Coding with fun and coding with gamification are becoming increasingly essential approaches. Let's have a list with your thoughts and a continuously updated list to inspire parents, teachers, mentors, and siblings to share knowledge and become effective tech ambassadors. Thanks to Maya Maceka for inspiration.
Block-based coding
- Blockly Games (https://blockly.games), Age: 5, Stack: block-based coding, Javascript
- Code for Life (https://www.codeforlife.education), Age: 5+, Stack: Blockly, Python
- CodeMonkey (https://www.codemonkey.com), Age: 5-14, Stack: block- and text-based coding, CoffeeScript, Python
- Tynker (https://www.tynker.com), Age: 5-18, Stack: Block-based coding, Javascript, Python
- Gamefroot (https://make.gamefroot.com), Age: 7+, Stack: block-based coding
- Code Galaxy (https://www.thecodegalaxy.com), Age: 7-18, Stack: Block-based coding, Lua, Scratch, Python
- Kodu Game Lab (https://www.kodugamelab.com), Age: 8+, Stack: block-based coding
- Kodeclik (https://www.kodeclik.com), Age: 8-18, Stack: block-based coding, Scratch, Lua, Python, Javascript
Programming languages
- Kodable (https://www.kodable.com), Age: 4-11, Stack: JavaScript
- Code.org (https://code.org), Age: 5+, Stack: Javascript, HTML, CSS
- Bitsbox (https://bitsbox.com), Age: 6-12, Stack: JavaScript
- Codemoji (https://codemoji.com), Age: 5-14, Stack: HTML, CSS, JavaScript
- Codeyoung (https://www.codeyoung.com), Age: 5-17, Stack: Scratch, HTML, CSS, Java, and Python
- Create & Learn (https://www.create-learn.us), Age: 5-17, Stack: Python, Scratch, Java
- Code Avengers (https://www.codeavengers.com), Age: 5-17, Stack: JavaScript, Python, HTML5, CSS3
- Coding with Kids (https://www.codingwithkids.com), Age: 5-18, Stack: Scratch, Python, Java
- Codevidhya (https://codevidhya.com), Age: 6-16, Stack: Scratch, Python, JavaScript
- CodaKid (https://codakid.com), Age: 6-18, Stack: Python, JavaScript, C#
- Real Programming 4 Kids (https://realprogramming.com), Age: 7+, Stack: Python, Java, C#, and C++
- Code4Fun (https://www.code4fun.com.au), Age: 7+, Stack: Scratch, Python, Java, C# with Unity, C++ with Unreal Engine
- Crunchzilla (https://www.crunchzilla.com), Age: 8+, Stack: JavaScript
- Girls Who Code (https://girlswhocode.com), Age: 8+, Stack: Python, JavaScript, HTML, CSS
- Juni Learning (https://junilearning.com/coding), Age: 8+, Stack: Scratch, Python, C++, JavaScript
- Scratch (https://scratch.mit.edu), Age: 8-16, Stack: Scratch
- CodeWizardsHQ (https://www.codewizardshq.com), Age: 8-18, Stack: Scratch, Python, HTML/CSS, and JavaScript
- CodeCombat (https://codecombat.com), Age: 9+, Stack: Python, JavaScript, C++, Java, Lua
- Vidcode (https://www.vidcode.com), Age: 9+, Stack: JavaScript
- EduCode Academy (https://educode.org), Age: 9+, Stack: JavaScript, HTML, CSS, Python
- CodeGuppy (https://codeguppy.com), Age: 13-18, Stack: JavaScript
- Roblox (https://create.roblox.com), Age: 13-18, Stack: Lua
Hi…is there another Library other than system.encryptographyprovider which includes IDEA encryption provider in C# and C ++…?
How to get data from OPC server in C# with which code?
Please come in and lower your bucket in this discussion thread:
- Which is better Java, Python, or C?
- Which is better for students as a good and easy start?
- Which is better for developers and professionals?
- Which is your preferable choice?
- Do you believe that Java is a 100% object-oriented programming (OOP)?

ASP.NET provided an in-memory cache implementation in the System.Web.Caching namespace.
Hello everyone,
I'm trying to model the motion of a cylinder in both CF and IL directions, but the UDF code that I have only can move the cylinder in the CF direction. Sadly I have never had the chance to learn to code UDF. Can someone please help me?
I will share the code below.
I really appreciate any help you can provide or at least promote this question to find the best answer to my issue.
FYI, this code is for Vortex-Induced Vibration of cylinders
####################################################
#include "udf.h"
#include "dynamesh_tools.h"
#include "unsteady.h"
FILE *fout;
static real v_prev;
DEFINE_SDOF_PROPERTIES(stage,prop,dt,time,dtime)
{
Thread *t;
Domain *d=Get_Domain(1);
real x_cg[3],force[2],moment[3];
real cg; /*Center of gravity position*/
real vel; /*Cylinder velocity*/
real Fy; /*Lift Force*/
real mass=8.88; /*Cylinder mass*/
real fn=1.06; /*System frequancy*/
real wn=2*M_PI*fn; /*System angular velocity*/
real z=0.002; /*Damping coefficeint*/
real k=mass*wn*wn; /*System stiffness*/
real c=2*mass*wn*z; /*System damping*/
/*Get the thread pointer for this which motion is define*/
t=DT_THREAD(dt);
prop[SDOF_MASS]=8.88; /*System mass of the 6DFOF*/
prop[SDOF_ZERO_TRANS_X]=TRUE;
prop[SDOF_ZERO_TRANS_Z]=TRUE;
prop[SDOF_ZERO_ROT_X]=TRUE;
prop[SDOF_ZERO_ROT_Y]=TRUE;
prop[SDOF_ZERO_ROT_Z]=TRUE;
cg=DT_CG(dt)[1];
vel=DT_VEL_CG(dt)[1];
prop[SDOF_LOAD_F_Y]=-k*cg-vel*c;
fout=fopen("results.txt", "a"); /*Open file*/
/*Wrtie data into file*/
fprintf(fout, "%g %g %g\n",time,DT_CG(dt)[1],DT_VEL_CG(dt)[1]);
fclose(fout);
}
I ask for your recommendations to quickly learn C#? And where can I find sources for the application of C# in petroleum engineering?
Dear all,
I am currently studying MPC in a temperature controller. I've got the concepts of MPC such as model, control horizon, prediction horizon, constraint, ..etc. With these fundamental understanding, I can easily do simulations test on Matlab Simulink toolbox.
However, I need to implement this MPC algorithm on C# WinForm Application, since I created UI on C# with temperature controllers basing on Modbus ASCII protocol. The hardware configuration is as the figure.
I've found someone who has done with CASADI toolbox on Python, but it seems quite hard to follow.
I am looking for suggestions on which library on Python to implement it. Besides, are there any problems with the hardware configuration?
Thank you!
I want have a function that returns inverse normal distribution, something like norm.inv function in excel
How we can store different countries latitudes and longitudes, and how we can
calculate the present time of different countries
I need MATLAB, C# or R code of above mentioned models. How could I find those?
C sharp tutorial material for digital image processing.
I am coding a coupled stress/PWP model with GeoStudio Add-in.
Does anyone know how to call the volumetric water content function and hydraulic conductivity function in the material function?
I ready coded Add-in VWC and Hydraulic conductivity functions. They work fine in SEEP/W. I want to integrate these functions into my Add-in constitutive model just as built-in coupled stress/PWP models.
it will be very appreciated for suggestions of any C# function that can solve my problem.
I want to publish my articles in scientific journals that are indexed to Research Gate. My current scientific work is "Solar cells modeling by C# programming language". But I am basic at writing articles. Please, give me advice to publish my articles. If you have any suggestion, write me.
Dear all,
I have some questions in C++ which I could not get clear answers through internet. It would be very helpful if you could help with it.
1. How to instantiate a non-pure abstract class ( only one of the data members is made pure virtual) in the main(). In internet it is mentioned that, it is possible to create my own constructor to initialize the property members and to use the non-virtual methods. is it possible?. or should the non-pure virtual members can be made static?
2. Some say, that it is even possible to create a non-pure abstract class just my making the destructor as pure virtual, it is possible?
3. What is the actual useof pure virtual destructor in the program actually?
4. Is it possible to use the auto type as return value in case of abstract function? Is it possible to know the type of data carried by auto variable?
5. why sometimes the constructor is made protected, is it liberately done to prevent direct instantiation? what are all the use cases of such practice?
6.If I call a virtual function in the derived class, it takes the default value of that function from base class always, how to override it? why it happens?
7. In multiple inheritance, why I make a class virtual to avoid multiple copies of a same base class, it does not work?
8. Interestingly, if I call the grandchildren class (in multiple inheritance)
class A(contains virtual members) : class B ( non virtual members)
class B : class C ( non virtual members)
class C: class D ( non virtual members)
9. If there is a non-pure abstract class( only one of the members is pure virutal), can I again define it as pure virtual if there is no body/definition literally available in one of the derived class, instead of defining it just for the sake of abstract class instantiation?
if I access the class D object, using the class B/C type pointer, provided that the base class A member function made virtual, the members of the class D is accessed instead of class B. Can I understand that any base class member irrespective of what you use becomes virtual even if one of the base class instance of that member is made virtual?
Hope my questions were clear. Would be glad to provide an example code if required.
Thank you and I look forward to hearing from you.
During literature review, I have noticed that many papers under the umbrella of software engineering use Java when code examples or small demonstrations are appropriate. I understand that Java is pretty ubiquitous, but is it the de facto programming language for SWE academia? Can I demonstrate something in a language whose syntax I believe illustrates my point better?
The quicker version of this question: Will my paper lose credibility if it shows examples in C# rather than Java?
I need to learn more about parallel executives in multicore laptops by using c sharp language in easier manners
Hi, I am a programmer, I was tasked by my boss to write some barcode reading software from cell phone photos. I found a paper by Orazio Gallo and Roberto Manduchi titled:
"Reading 1-D Barcodes with Mobile Phones Using Deformable Templates".
IEEE Trans Pattern Anal Mach Intell. 2011 September ; 33(9): 1834-1843.
I graduated long time ago in 1994 and my math is kinda weak.
In section B:Barcode decoding, I could understand everything except the part about "the list of cells" on page 9, where it states:
"The list of cells {V sub k to the t}, as well as the integral of p(o,w) within each cell, can be computed offline and stored for online use."
I did not understand the math about this and the cost function, I was wondering if anyone knows of any online tutorial or free source code about this ??
I uploaded some free C# code on my GitHub to try to code this algorithm and the code is at this url:
I also uploaded the paper itself, it is attached to this.
Thanks for any help out there in cyberspace.
For somebody who already knows some programming skills and languages, what are the best and fastest strategies to master other programming languages?
Hi,
I have been using Microsoft Volume rendering (MSVR) framework for 3D volume rendering using volume ray casting method in my medical image processing application which is developed using WPF of C#.NET (VS 2012 premium). . This framework (MSVR) runs only on NVidia GPU. Now I need a similar framework which should run on AMD Radeon (model 530) GPU. I explored all the possibilities from AMD site, but there is no concrete and straightforward solution. I am very much confused with the AMD's URLs, their SDK and other library support.
Could you please suggest a solution for my requirement? I need a solution wherein I can call the volume rendering APIs directly from my C# code by passing the processed 3D volume of CT/MRI images
- Manjunath
I know there are great reliable libraries on Fortran for Computational PDE/ODE, Computational Statistics and Numerical Linear Algebra.
Also almost all the legacy software packages of Civil Engineering, Mechanical and Aerospace Engineering, and Chemical Engineering are developed on Fortran. Newer versions of Fortran compilers are object oriented and incorporated many new features needed for Finite Element Mesh and Unstructured Mesh of Finite Volume, However, they still do not have some features of new languages as they have to be backward compatible.
I ask this question having to main point in mind:
1) Education and training of numerical methods.
2) Developing from the scratch or modifying the exciting in-house codes?
What are the Fortran limits? and what scientific and practical cons and pros you imagine for abandoning or sticking to Fortran?
Hi all,
I am trying to find the best tool for performing genetic programming regression on a data set of about 1000 X 1000 data.
I tried to use Karoo_gp, it works fine for a while with small data set, but then it drops most of the time when I add the whole data or increase operators.
Any suggestion of tools that can perform this task, preferably in Python, C++, or C#, will be greatly appreciated.
Thanks
Homework in Computer Vision and Image Processing course
I am working with various ABB robots (IRC5 controller). I am trying to communicate PC with ABB robots with TCP/IP socket communication. I need to create C# (Visual Studio) interface as client to send/receive information from IRC5 controller (RAPID server). There are two ways to do that. Fist one is based in SDK from ABB, where DLL files are including in C# code. Second one doesn't depend of DLL files, this way is a normal message communication between client and server, where server is a RAPID code installed in IRC5 controller and client is a C# interface. I need detailed information about how to create socket to share information between robot controller and client PC. ABB provide manual to create that was mentioned, but information is limited. From now I appreciate any helpful.
What are the best deep learning toolkits and labraries for c# programming language?
We saw this code on github which records the position of the body coordinates with the use of Kinect v2 and C# programming language. In this code, we would also like to add on output the time stamp for each frame it acquires.
Can someone help me to edit this code in order to get the time stamp of each frame captured. Thank you very much. Any help would be appreciated.
The naturally occurring polyphosphates activate the contact system: factor XII and F XI. The platelets that are involved in the blood clot, secrete PolyP. Can cells in the state of apoptosis or microparticles bearing and other cells: leukocytes, amniotic cells also release such polyphosphates?
I am working on a neural network project in which the data has non linear behavior which is implemented in C# and Encog.
My main objective is to predict the values.
I have some data(which is limited ) say like some 300 data sets. In these data set i have split the data for training and validation. The input of the network is 26 neurons and the output is 25. I had normalized the data and done the training.
My training method is ResilientPropagation and tried with various number of hidden layers.
network.AddLayer(new BasicLayer(null, true, 26));
network.AddLayer(new BasicLayer(new ActivationLOG(), true, 50));
network.AddLayer(new BasicLayer(new ActivationTANH(), true, 50));
network.AddLayer(new BasicLayer(new ActivationLOG(), true, 50));
network.AddLayer(new BasicLayer(new ActivationTANH(), true, 50));
network.AddLayer(new BasicLayer(new ActivationLOG(), true, 50));
network.AddLayer(new BasicLayer(new ActivationTANH(), true, 50));
network.AddLayer(new BasicLayer(new ActivationLOG(), true, 50));
network.AddLayer(new BasicLayer(new ActivationTANH(), true, 50));
network.AddLayer(new BasicLayer(new ActivationLinear(), false, 25));
var train = new ResilientPropagation(network, foldedTrainingSet, 0.02, 10);
The problem now is that the training error is 200 and the validation error is way too high like 2000 or more.
I had tried with different number of layers and activation functions such as Log, tanH with various number of hidden neurons but there was no improvement to the error.
As of now my judgement is that, this error is due to the limitation of the data set(which is of non linear behaviour).
My question is, Can I improve my network for this non linear behavior with the current data set limit by using some different tactics or activation functions or training method.
techniques and libraries for lexical analysis, syntactic (parsing) analysis, semantic analysis, discourse integration and pragmatic analysis. C# supported libraries for programming.
I am using EmguCV's (Ver 3.1) SurfFeature example and trying to count the amount of matched pairs of points between both images.
It seems that "mask" variable stores the match information, but I don't know how the information is stored.
For example, can you tell me how many matched pair of points are found? Which point matches which point?
I am developing a project where users feedback is one of the panel. So, my point is to find out depending on keywords or strings the system will know whether the feedback is negative or positive.
Thanks
I am using C# with asp.net for re-ranking images based on Content retrieval.
The concept of my work as:
1. Extracting visual features for all images.
2. Find the similarity between a query image and rest images.
3. Finally, re-ranking the images based on their similarity to the query image.
Now, I chosen (FCTH & SURF) for extracting visual feature of the images. But, I need another method to extract visual features.
What method is the best for this purpose?
Already my senior scholar developed SODAR software using vc++, but i want design a software using C#
Is there any possibilities to design a software to find wind direction(vertical,horizontal), facsimile record,received signal in time domain,frequency domain in SODAR signal using C# or Java
I am using C# to retrieve all rows in a postgresql database. This postgres database includes a field that a column number saved in each cell.
How can I retrieve those columns and store in a list?
I used C# to feature extraction of multiple images. After that, I want path of images with their features that include (1 by 144 array) insert into postgresql?
How can I do?
i am using smssync (android app) as an sms gateway . how could i connect this to asp.net C#
Hi everyone,
I'm recently doing research on the control field with the aim to develop a low cost 3 and 4 axis cartesian industrial multi-purpose robot using an off the shelf MCU. I'm not discarding even the possibility of attaching a cheap computer with enough DIMM slots to attach I/O and control cards. My current approach is as follows:
Type of motors: DC, brushless (simpler electronics) and stepper type (bi-polar, H-Bridge control type)
MCU: What brand/model is best recommended for motor control?. What specific characteristics can be obtained in a specific control card (multi-positioning, signal processing for path determination, PID capability?)
Programming: C++, C# or BASIC, assembly code embbeding could help too, however, I'm still not submerged in the detail of control programming. I understand that it would require advanced programming such as PWM and PID tuning; any insight or papers describing the basics that can be provided will be quite useful. I'm a profane to the mistery of synchronized axis movement for positioning, so programming examples would be appreciated.
Operation Mode: Basically running a manual mode and auto mode, and using a low cost XBOX type of controller as a teach pendant, as well as a small HMI to provide the menu is being considered.
Not attempting to re invent the wheel, I also understand there are CNC programs such as Mach 3 that could make it easier on the concept, however the HMI does not look user friendly for generic purposes, such as attaching a glue valve to the robot to follow 3D contoured parts and complex paths. Also I'm not sure if G code embedded in the control can be a possible approach. Are the chinese cards/motor/drivers/software bundle control kits a suitable option? Any specific direction that you can point me out in terms of cost effective motor control for this purpose is welcome.
Thanks in advance
-EZ
I am unable to code for Neural Networks as there is no support for coding. I want to code for vehicles travel time prediction with Neural Networks. A simple example in c, c++ or c# about coding will help to understand how to build our own network, how to train & test.
A git repository or any other codebase please.
Respected Sir/Madam,
Can you suggest me :--How to do interlink two diffrent things and correlate to each other?
- Firstly ,We examined 22 different UML Class Diagram and Find out Maintainability through these Size metrics and Structure Complexity Metrics .Size metrics contains Response for a class ,Number of Method, Total Number of methods, Weight methods per class. Structure Complexity metrics contains Number of Children, Number of classes ,Number of Relation ,NGen, MaxDIT, NAggH, NGenH.
- Secondly ,Maintainability Index (MI) is a composite metric that incorporates a number of traditional source codes metrics into a single number that indicates the relative maintainability. This Second is that , assess the Maintainability Index, Cyclomatic Complexity, Lines of Code (LOC), Depth of Inheritance,Class coupling and result found the enhance maintainability through Visual Studio C Sharp 2013 and analyze the Code Metrics of different diffetrent small program.
Can you guide me how to interlink these two things to correlate each other because program of Visual studio c# and UML Class diagrams are diffterent to each other . They are no simililarty criteria and coordination to each other ,only both are same object oriented programming and their characteristics are OOPs nature.
So,What I should do?How to conclude these things.
I found bouncy castle, is that preferable?
I am building a C# (WCF) application and it uses a dll Since I am working with CUDA programming., I have written a small program in CUDA C++ which returns a string and generated Dll of it. String Contains Information about Nvidia GPU card (mostly one page Information) .
.I am using PInvoke - (Dllexport and DllImport). C# application is importing this Dll . After running the application I am getting the following exception
-> System.AccessViolationException : Attempting to read or write the protected memory .
As I searched through internet ,many opinions suggests, it is problem of marshalling the data from unmanaged code to managed code.
Is there effective way to return a string from Dll to c# application. I have struck with this from many days. Any possible help is highly appreciable.! Thank You!!!
I have installed visual studio 2013......but i have ms word 2010........................I add the reference (microsoft.office.interope.word)....... .......and also how can i read the exact size and underline of a character from a .doc file.......
I'm looking for the efficient matrix manipulation free (open source/GPL/etc.) library for the .NET framework (v.4.5 would be the best).
Blood Cells, Matlab, C#, Detection,Segementation
i want to reduces shockes in sequence of video images, did any one have a example code for doing this?
i use OpenCV in C# and i estimate moving velocity of each images related to last image. in fact i use optical flow to extract movement between images.
however, how can i stabilize this images for decline shocked and unwanted fast move in realtime by changing the orientation and shift on the images?
Is there any domain ontologies (in owl format) which capture the educational concepts in the JAVA programming course or c++ ?
We tried to implement an Extreme Learning Machine (artificial neural network) algorithm in C# within the .NET framework.To avoid any mistakes: I am referring to a particular neural network architecture, similar to a multilayer perceptron, in which the connection weights from the input to the hidden layer are randomly assigned by initialisation and only the weights to the output layer are trained.
We ran into a problem, as during the computation of a large dataset of many input vectors (i.e. training examples, in our case a very long electricity load time series) the implementation throws an exception stating that one of the arrays just exceeded the maximum number of elements a .NET array can hold. This is happening during the Singular Value Decomposition for the Moore-Penrose pseudoinverse.
Is there another computationally feasible way to calculate the pseudoinverse without using SVD (and without producing matrices with the size of the squared input sample count)? Or is there some way to split the H-matrix of the ELM algorithm, than calculate the pseudoinverse for these smaller parts and reassemble them afterwards before computing the output weights? Or how do you tackle solving this for long time series?
Your help would be much appreciated!
Currently implementing a fuzzy min/max neural network in C#, so need some sample code regarding the same topic.
I want to dvelop a web application usign google maps apli, asp.net with c# and sql database, it a s point of interest application , people can draw routes on google maps and can contact people on the same route using mobile email or sms.
Hi, I am trying to determine the 6DoF of a known object, between sequential images (with the first image as reference frame).
I am making use of a 3D Pose algorithm (POSIT algorithm) by A. Kirillov and his GUI written in C sharp (the link attached for reference).
Two sequential images are opened, after which I provide:
- Image coordinates of some points for the known object in the sequential images.
- The object coordinates are also provided for the points(size and shape of the object is known).
- Focal length of the camera used, is also provided (the intrinsic and extrinsic parameters of the camera where obtained using the Matlab calibration toolbox beforehand).
The pose of the object is then estimated in each of the sequential images, which provides a Rotation matrix and Translation vector.
Using: Xcam= XobjR + T, I hoped in obtaining the object coordinates, knowing the camera image coordinate as well as the pose (This did however not work because the Rotation matrix and Translation vector is from the camera perspective).
I know, that the Rotation from the camera perspective will be the same as from the object perspective and thus for the rotation portion, I can make use of the output provided.
For the Translation, I am however struggling and believe the solution my by simpler as I think.
Any help on this would be greatly appreciated.
I am looking into optimizing Triple-DES and I have already implemented it using C# and the inbuilt security.cryptography libraries. However, I now intend to go low level by implementing Triple-DES encryption in C# without using the libraries. Can someone please help me with such an implementation?
I had byte array which was derived from an image , then this array text was encrypted to be saved in database, I want to retrieve this text decrept it then transfer it to byte array again to retrieve the image , how can this be done?
Give a mathematical equation "a + b c " normal parser can parse and tell it is syntactically right or wrong , if there is any error it will throw proper error message and terminate. But I want a parser that can handle the condition if any error occurs then do some kind of insertion or deletion of symbol in a given expression and do further processing and give proper message to user like "You have inserted extra symbol S" or "Your expression is missing S symbol" . In this case parsing would not be terminated as an when some syntax error occurs because it will be handle by parser. This kind of parser is known as an Error Correcting Parser.
Which are the advantages and the disadvantages of the most common languages?
Do we have to work only with "low level" languages like C/C++?
I want to draw some 2D patterns. It should work with VC++ or C++. I try GDI and GDI plus, but it does not work well when I want to color the new shapes. I want to draw some new shapes and color them as an independent unit.
I appreciate anyone who can give me some advice.
I am trying to make an app in c# that will detect/classify 3 poses of the human body: standing, sitting, and lying. I can correctly detect/classify 2 of them (sitting and standing) with skeleton tracking. When it comes to lying on the floor, Kinect seems to not be able to track the skeleton of a human body.
Does anyone have any experiences with skeleton tracking in a lying position? As soon as I lie down, I lose joint positions. Is this task impossible? Thank you.
I want to learn a new programming language. Actually I have basic level knowledge in programming and I've been using C++ and MATLAB for my purposes. I want to learn another language for the easy accomplishment of my project work. I have used MATLAB for analysis purposes and now I would like to convert my MATLAB application into a software. Sometimes it is difficult to handle C++, that is why I would like to go with an easier one.
I need to save the distances from depth image to txt file (just one column for depth for each image pixel from x-axis and y-axis), I can't do that by myself, after that I need to define objects appear in this depth image, my idea is to search for same object appear in same distance from the camera then by approximate I want to define the object and display new image contain only this object.
This is the code I already used it:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Kinect;
namespace HelloKinectWorldWPF
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
KinectSensor sensor;
public MainWindow()
{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
sensor = KinectSensor.KinectSensors[0];
sensor.ColorStream.Enable(ColorImageFormat.RgbResolution640x480Fps30);
sensor.ColorFrameReady += FrameReady;
sensor.Start();
}
void FrameReady(object sender, ColorImageFrameReadyEventArgs e)
{
ColorImageFrame imageFrame = e.OpenColorImageFrame();
if (imageFrame != null)
{
BitmapSource bmap = ImageToBitmap(imageFrame);
image1.Source = bmap;
BitmapSource source = e.imageFrame.ToBitmap.Source();
}
}
private byte[] GenerateColoredBytes(ImageFrame imageFrame)
{
int height = imageFrame.Image.Height;
int width = imageFrame.Image.Width;
//Depth data for each pixel
Byte[] depthData = imageFrame.Image.Bits;
Byte[] colorFrame = new byte[imageFrame.Image.Height * imageFrame.Image.Width * 4];
var depthIndex = 0;
TextWriter tw = new StreamWriter("sameobjects_test" + ".txt");
for (var y = 0; y < height; y++)
{
var heightOffset = y * width;
for (var x = 0; x < width; x++)
{
var index = ((width - x - 1) + heightOffset) * 4;
// save distance to text file
var distance = GetDistanceWithPlayerIndex(depthData[depthIndex], depthData[depthIndex + 1]);
tw.WriteLine("x: " + x + ", y: " + y + ", distance: " + distance + " ");
}
}
}
BitmapSource ImageToBitmap(ColorImageFrame Image)
{
byte[] pixeldata = new byte[Image.PixelDataLength];
Image.CopyPixelDataTo(pixeldata);
BitmapSource bmap = BitmapSource.Create(
Image.Width,
Image.Height,
96, 96,
PixelFormats.Bgr32,
null,
pixeldata,
Image.Width * Image.BytesPerPixel);
return bmap;
}
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
sensor.Stop();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
sensor.ElevationAngle += 4;
}
private void button2_Click(object sender, RoutedEventArgs e)
{
sensor.ElevationAngle -= 4;
}
}
}
I want to convert my c# code into matlab. Can anyone help me?
I got some EEG (electroencephalography) data from my epileptic mice, I want to know how to calculate the amount and lasting time of sharp wave during a period of time. Is there any software I can use to achieve the aim?
Why do some client terminal link to server, but IP refuse to change to that of server providing?
I want to compress each image uploaded by the user before storing it in the database with the datatype varbinary(max).
I want to add a payment form in my application for users when they want to buy stuff and to send cash to the company as donations and for license buying. Can anyone help me to do this in a secure way?