|
|
Thats it indeed. Wow that link has the calculations investigated in some serious depth.
I'm off for a long read thanks.
|
|
|
|
|
How about System.Diagnostics.Stopwatch ?
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Occupation == jobTitles.Programmer && you.Passion != Programming)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
That did the trick brilliantly, thanks a million Harvey and Harold.
|
|
|
|
|
Your welcome
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Occupation == jobTitles.Programmer && you.Passion != Programming)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
|
I have a bitmap image which contains a single irregular shape that resembles a circle. but not exactly. just looks like a circle. i want to determine if it resembles more of a circle or more of an ellipse. to be precise, i am dealing with a biological cell image. hence, the shape is irregular. the rest of the bitmap has a white background.
can someone pls help me out??
thanks.
Vikram
|
|
|
|
|
Errrm this is very complicated, thje stuff of research projects.
If you are just interested in separating more circular from eliptical cells, one method is to up the contrast on the image until it is black and white. Assuming the Cell edge is still visisble, you can pass the bitmap to a neural network trained to distinguish circles from ellipses. You could look at OCR techniques, as these have a similar problem domain.
You won't get a full answer here as it is just too complicated a question!
CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks
|
|
|
|
|
i have read that this can be done using FFT.. but i have no idea how implement FFT to an image.. any advice on this wud be really helpful. thanks!
|
|
|
|
|
FFT is beyond me for this, I know it can be used to determine the "frequency" and orientation of any stripes in a bitmap.
I suggest you google for this.
CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks
|
|
|
|
|
|
Convert your image into 2 colors, one color for edge, one color for non-edge. You can then determine centroids of the resulting polygons. With the centroid measure to any edge and then compare your numbers with the results of the many area formulas available for different shapes. Closest one is a likely match.
|
|
|
|
|
i am sorry but i dont understand what u r trying to say.. pls can u elaborate a little more. thanks
|
|
|
|
|
An alternative, not sure if it fits the question; Draw a square box around it, and stretch the image until one of the edges of the irregular shape hits the box.
The center of the box would be easy to find, and you could take that as the center of the irregular shape. Next, draw lines from the center to the edge of the irregular shape; that would give you a List<Radius> . For a "real" circle, the radius would be half the length of the box.
I think that you'd want the standard deviation, not the mean. Remember that the line-thickness of the irregular shape also has an influence on the outcome, you'd have to experiment a bit to determine the appropriate margins as to what would be called a "circle", and what not.
I are Troll
|
|
|
|
|
Hi Friends
An error "An Invalid IP address was specified" occuring while compiling below code
string Server ="smtp.mymail.com";
IPEndPoint ipe = new IPEndPoint(IPAddress.Parse(Server), 25);
please give a solution to overcome error
thanks in advance
-kk.tvm-
|
|
|
|
|
IPAddress.Parse only takes IP Addresses, you have supplied a domain name. You need to resolve this back to an IP address. You can use Dns.GetHostAddresses to do this.
CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks
|
|
|
|
|
IPAddress parse only IP address not FQDN...
Use this code instead:
Take care you may have more that one address eg. look at the www.google.com for instance.
So take the first entry if you don't need balancing.
string hostName = "smtp.mymail.com";
Console.WriteLine("Local hostname: {0}", hostName);
IPHostEntry myself = Dns.GetHostByName(hostName);
foreach (IPAddress address in myself.AddressList)
{
Console.WriteLine("IP Address: {0}", address.ToString());
}
|
|
|
|
|
Hi,
I've one stencil(sample.vss) file and trying to create Visio.Document object. How to create visio document object for the sample.vss file. Thanks in advance.
|
|
|
|
|
Most of MSFT's objects are propriatary. Not that you can't figure out the protocol (in this case Visio protocol) but it's usually pretty complicated. Not to panic, what I've done in the past is attempt to save MSFT as a web page and decipher it that way. Looking at HTML is the "Common Thread" that we all easily understand.
Because Visio involves graphics you may have to dig in a bit deeper because yes, even graphics have protocols.
XML is another good way to "skip the internals" of a file protocol. XML is another Easy way to get the Visio engine to respond to simple commands via the markup.
So here's a start fo you take a look here and see if you can't find a mapping for the file format you want: Google Search for Visio File format
|
|
|
|
|
Hi All, this is my first post. Hope I make sense!
I am maintaining an application that communicates in the following way
VB6 (COM.class1) -> .NET COM (COM.class1 to WS.class1) -> .NET Web Service (WS.Class1)
What the above means is that a .NET COM component has a class that is exposed and populated in VB6. When this object is passed to the COM component, it's contents are copied over to a similar class which is defined in the .NET Web Service class, and then this object is passed through to the .NET web service.
I can see that serialisation should have been possible to just have one class that can be passed without any copying in the COM object, but that's a minor issue at the moment!
I want to be able to find the best way to pass through a field name and value from VB6 to the web service using the COM object to communicate? I want to be able to distribute new versions of the web service (with additional fields for instance) without the need to release the COM object and/or the VB6 application to ensure backward compatibity.
I hope I am making sense, if not, i'll try to clear up anyone where they are lost!
My first idea was to pass through a 2 dimensional array, but I don't think that's the neatest solution!
|
|
|
|
|
using a plain method enables you often to focus on the whole software instead of fighting with technology.
create an interface like
int Set( string name, string value );//Return code
string Get( string name );//the result
If you think have to write a lot of code, think also that you avoid a lot of debugging and headache
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
oops, just realised I said I want to pass through a field name and value, but I actually meant passing through a class of field names and values, sorry!
The class I have has things like Name, dob, surname, etc and these will be only simple types (like int, string, etc).
I am thinking at the moment to pass through a two-dimensional array and have a type-library that is used to interpret the fields on the web service and on vb6 when assigning values in the array to pass through...
|
|
|
|
|
my simple way will free you of a lot of pain, and you can put up your mind in other aspects of your project.
An array will you you pain!!! Indexe changes, sizes and name changes. Beware of it
Give me some points against my proposal (and remember them for the project end)
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi all,
I am preparing for MCTS certifiaction.
I want 70-536 dumps.
Anybody has dumps then send me at gohel_sunil@hotmail.com,gohelsunil@rediffmail.com
Thanking You,
Sunil G.
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:53am.
|
|
|
|