|
tvbarnard wrote: 2. Parrallel processing the images (but I ended up with errors).
What were the errors? How did you code it? Did you use the Parallel Framework[^]
only two letters away from being an asset
|
|
|
|
|
I am not sure which parallel libraries you are refering to, but to be specific, I used the following line of code:
Parallel.For(0, bound, delegate(int i)
{
);
I didn't get errors in compiling, just got errors in my results.
I know my results were wrong, because the results I got were immediately different.
Any other parallel approaches you would suggest?
I also tried using normal referencing instead of pointers but I still got incorrect results.
tvb
|
|
|
|
|
Only one Parallel Framework I'm aware of.
only two letters away from being an asset
|
|
|
|
|
A couple of suggestions...
It takes a lot longer to process doubles than ints. Can you use ints for pixels?
A good algorithm for discovering classifiers is the ID3 algorithm (http://en.wikipedia.org/wiki/ID3_algorithm[^]). It analyzes your training set and automatically produces a decision tree that will classify a new case. Each branch of the decision tree will compare a feature (in this case a pixel) of the new case with a threshold.
|
|
|
|
|
Oh yes, already did that
Thanks, will have a look at the ID3. Unfortunately I'm running out of time, so can't change or add too much code.
tvb
|
|
|
|
|
what is their functions? I am completely confused.
When sending arp message in LAN,Winpcap is very nessecery?
What is about it?
any one help me?
thanks in advance!
|
|
|
|
|
I've had a look at the documentation on their site, and it appears to be all C++ not C#. You will need to write a wrapper and use PInvoke to call the functions and write equivalent data structures etc so that data can be marshalled correctly, unless there is already a .NET wrapper for it such as this[^].
|
|
|
|
|
There is a nice WinPcap wrapper you should try to use.
It uses C++/CLI instead of PInvoke, which has much better performance.
It is called Pcap.Net and available here:
http://pcapdotnet.codeplex.com
|
|
|
|
|
Hi guys.
I have a VPN connection to the Internet with 14kb/s. It's too low, but I can setup several VPN connections and it causes the speed increase ( 14kb/s per each VPN connection )
Now I'm going to establish several VPN connections to the Internet and configure them with C# !
Could you please guide me, how I can do it ?
Thanks.
|
|
|
|
|
can i go to next page in a multi pages crystalreport without using next page button just scrolling down and next pages will come one by one.....how?????
|
|
|
|
|
I run D:\Program Files\Microsoft Visual Studio 9.0\VC>Installutill.exe C:\Winservice\Release\LOG.exe to install windows service ,but The following problem occurred:
The Rollback phase completed successfully .
The transacted install has completed.
The installation failed, and the rollback has been performed.
------------
the installer class is as below:
public partial class Installer1 : Installer
{
ServiceInstaller ITServersLOG;
ServiceProcessInstaller ICCIMProcessInstaller1;
public Installer1()
{
InitializeComponent();
ITServersLOG = new ServiceInstaller();
ICCIMProcessInstaller1 = new ServiceProcessInstaller();
ICCIMProcessInstaller1.Account = ServiceAccount.LocalService ;
ITServersLOG.StartType = ServiceStartMode.Manual;
ITServersLOG.DisplayName = "ICCIMLOGService";
ITServersLOG.ServiceName = ITServersLOG.DisplayName;
Installers.Add(ITServersLOG);
Installers.Add(ICCIMProcessInstaller1);
}
}
how can i solve it?!! please help me!! 
|
|
|
|
|
how to searche in datagrid word to word
|
|
|
|
|
Does this[^] helps?
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Hi
i've use TableAdapter (typed dataSet) in my app, i extent my business layer to validate some information. when data is not valid then throw an exception.
now i want to handle this error in presentation layer. for example display error value in red color in datagridview, but i don't know how to do that.
can anybody help me to handle it in presentation layer ?
thanks
|
|
|
|
|
What information are you passing with the exception back to the presentation layer? I suppose there is any unique identifier that can help you identify the row having faulty data. Then, using Cells.Style property, you can set the fore color of the cell.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
hello
i want to ask, how i can get the current date format?
thx
Thaer
|
|
|
|
|
System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.FullDateTimePattern; Check out the other properties of DateTimeFormat - there's plenty available.
|
|
|
|
|
|
I need to know how to go a bout locking the MS Access Applications Database via a C# Application.
I found this but this is vba reference not c#.
I will research more in the morning I wanted to see if anyone else know what the best way to go about handling this.
http://www.databasedev.co.uk/disable_shift_bypass.html[^]
|
|
|
|
|
is there a way I can pass vba code to a ms access database from c# application to disable the Lock Access DB. I can find VBA code for ms access but I do not know how to do this from C#, so I can lock the file durring the copy process.
|
|
|
|
|
Hi all !
i want to import excel data to a datagrid for e.g. the first sheet . (i don't want to use any database (such as .mdb file or sql )) . how can i do it ?
thanks fo rany help !
|
|
|
|
|
You can do this by creating an OleDb connection to the excel file and then executing a select query on it. This would give you the excel data which you can use to populate the datagrid. You can find the connection string for this at ConnectionStrings[^].
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
thanks ,
i use this :
OleDbConnection theConnection = new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;data source=c:\\test.xls;Extended Properties=Excel 8.0;");
theConnection.Open();
OleDbDataAdapter theDataAdapter = new OleDbDataAdapter("SELECT * FROM [Sheet1$]", theConnection);
DataSet ds = new DataSet();
DataTable dt = new DataTable();
theDataAdapter.Fill(dt);
dataGrid1.DataSource = dt.DefaultView;
but in it will show onlt the title of "F1" and "F2" in DataGrid , do the data of [Sheet1$] excel File .
|
|
|
|
|
What is F1 and F2? Just check the data in the file and the one in the table you are binding with the grid.
Do you have any data in the file? Just inspect your datatable and match it with the file.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
modified on Sunday, October 18, 2009 5:24 AM
|
|
|
|
|
thanx , ...
now ...
i want to filter some rows have the code of "91" and "90" for i.e. in the field of "A" :
so , I added manually , A column in the DataGridView , name "Column1" . now when i import the excel file to this datagridview , the cell rows that have the value of for e.g. 90 and 91 , insert a value for instance 1 , the value of 100 and 101 , insert 2 and so on .
How can i do this ...
(excuse me for my bad english !)
thanx for help !
modified on Tuesday, October 20, 2009 4:04 AM
|
|
|
|