|
But I can still assign it to ISkinnable, right?
|
|
|
|
|
Yes[^], but you won't get everyone's sympathy.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Ah, that's what I like to see, a shaved p....
|
|
|
|
|
PIEBALDconsult wrote: a shaved p....
You'll want to make that IEdible, as well, I assume.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Yes, because this.Lick ( this ) throws NotImplementedException.
|
|
|
|
|
Bummer...
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
But not ISwingable.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
You could create a constructor for InheritedTable that takes a DataTable as an argument. Although DataTable is already a huge class and Inheriting from it is probably not a good idea anyway. If you are only adding a couple methods consider using Extension Methods[^]
|
|
|
|
|
I want to compare two images to see if the second image appears within the first. I had thought about the pixel by pixel comparison but there are a lot of variable involved. The facts are these:
1. The first image is a large picture, an orienting picture as it were.
2. The second picture will exist in the first picture, but it will likely be a close up of something in the first picture, could be a slightly different angle as well.
So the pixels won't be the same. Should I reduce the size of the second image in proportion to the first picture and then compare? Will that even make a difference or will the pixel count still remain the same in spite of the resizing.
Can I even pull this off or am I having an LSD flashback from my youth?
--EA
|
|
|
|
|
eddieangel wrote: am I having an LSD flashback from my youth
I don't know about that but it is entirely possible that you have been watching too much CSI.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
Why do programmers often confuse Halloween and Christmas?
Because 31 Oct = 25 Dec.
|
|
|
|
|
This is a major research topic. Several companies are working on this subject, e.g. security companies want to recognize people's faces in a crowd; and Google wants to offer a service where they recognize the location you show them through a snapshot; they would extract clues (historic buildings, road signs, whatever) and search huge databases.
For an object present on a small picture to be found on a larger picture, with different scale, different orientation, different illumination, it is hard too; however you have one big advantage: you (claim to) know the object is present. So you might go and scan the large image for significant properties, such as specific colors (with some tolerance), a specific shape, etc. Still, a big challenge.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
For the scope of my work it sounds like more trouble that it is worth. Imagine taking a picture of the side of a house and then a picture of a two inch crack in the side of a house and trying to find where that crack belongs on the picture. I will let the people who have more at stake figure it out.
Thank you for the insight, as always.
Cheers, EA
|
|
|
|
|
IMO it would probably be easier to write some code that finds cracks in a single image, without doing any comparisons. Rather than looking for an object, you may only need irregularities in a structure. Edge detection (contrast enhancement) is a likely first step.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Pixel-by-pixel comparison it too slow with current processor technology, especially when you need to compare images at different angles and scales.
Average the pixels in squares and do a correlation with the target image's squares, varying
1. The position,
2. The scale, and
3. The angle.
It's only a rough comparison, but it will quickly eliminate 99% of the wrong positions. The parameters that do produce a reasonable correlation can be investigated in more detail to make a selection.
|
|
|
|
|
hi, I used the below code in sql and it gave me something like: "Item 3,00" in two columns but how can I do it from c#?
Select Item, SUM(Price) From Table5 Group By Item
I tried below but not helped. How can I access the values of cmd seperately?
SqlCommand cmd = new SqlCommand("Select Item, SUM(Price) From Table5 Group By Item", sqlConn);
string itemname = cmd.ExecuteScalar().ToString();
|
|
|
|
|
RTFM. ExecuteScalar returns a single result. What you want is ExecuteReader.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
ExecuteReader instead of ExecuteScalar.
Or have it return a string containing both parts, perhaps an XML element.
|
|
|
|
|
Data reader would be the best.
SqlCommand cmd = new SqlCommand("Select Item, SUM(Price) From Table5 Group By Item", sqlConn);
com.CommandType = CommandType.Text;
SqlDataReader rdr = com.ExecuteReader();
if (rdr.HasRows)
{
string str1 = rdr["Item"].ToString();
}
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Hi,
I have a question.. If I am going to use the same format of Microsoft error codes in my application development, can anyone explain how do they create the codes? for example what does 0xF89303BC stands for? does every character in this code refer to something?
Thanks..
|
|
|
|
|
I'm pretty sure those are just serial numbers. The microsoft guys are old-school and they probably have gigantic C files with thousands of those codes in there. They just make them up as they need them, I doubt the digits have any meaning. Except maybe they could have prefixes stand for certain products/sub-products.
|
|
|
|
|
|
There are some conventions that most parts of Windows are adhering to. The 32-bit error code then is:
- negative;
- consists of 16-bit component/application code, and 16-bit error code;
- understood by FormatMessage() in kernel32.dll, which returns an approriate error message string.
The lower 16-bit values in this situation are listed in one of the C header files, probably winerror.h
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Luc provides useful advice as usual. for specific values see here[^].
It's time for a new signature.
|
|
|
|
|
Anyone have any suggestions for alternative grid controls(for desktop)?
I really just need something like GridView, but I like the Infragistics functionality where you can do runtime filtering on the data by clicking the column header and choosing from a list of distinct values. Ideally open source, but at least free. It seemed like a fun project, but I'm sure this particular wheel has been reinvented about a thousand times, so I thought I'd check with you guys.
Is there anything out there like this on CP, or elsewhere?
|
|
|
|
|
Also, hierarchical filtering would be cool too, where you can filter by the groups.
|
|
|
|