|
how do i scan an image column wise in c# . i need help with the code . i wanted to read the next pixel of the same column .please help im a beginner in image processing
Thanks in advance
|
|
|
|
|
well if your image is a bitmap you can create a 2D array of pixels then loop through columns and rows
actually just use:
Bitmap b = new Bitmap(filepath);
for(int i = 0; i < b.Width; i++)
{
for(int j = 0; j < b.Height; j++)
{
Color c = b.GetPixel(i, j);
}
}
|
|
|
|
|
do u mean i can use getpixel and setpixel method to solve this....i was intending to use unsafe code so that it could be faster....
|
|
|
|
|
what do you want to do with the pixels?
|
|
|
|
|
i am trying to segment characters from a string of characters in a license plate image....i want to scan my image column wise so that i can extract every character ....so i need to find how many black pixels are present in a column....
|
|
|
|
|
Good luck lol :P
You do have to go through the pixels though, so I would stay with my GetPixel() suggestion. I dont know of another alternative to getting the pixels sorry (unless you read the file yourself, but then you would have to store pixels as an array, and loop through them yourself)
Just out of interest - what algorithms will you be using to detect the letters?
|
|
|
|
|
There's some articles on CP that deal with OCR. Would still be a challenge, I guess
I are troll
|
|
|
|
|
ahhh.. V.Interesting.
Might take a look at doing something like that if i ever get the free time lol
The office MODI method looks like the simplist approach, cant say that be good for speed thou :P
|
|
|
|
|
thanku all ........if any 1 can still help i'll be highly obliged..........
|
|
|
|
|
i am having set of 2d images....and i want to stack those images to visualize 3d image..i didn't get any idea.....i was searching in google,but i couldn't get exact details.....if anyone help me by giving any article or idea related to this......
|
|
|
|
|
What?!? what is the 3D image meant to look like? what do the 2D images represent?
|
|
|
|
|
i am doing project in computed tomography.....i have 2d images of full hand....i have to stack the 2d images to visualize the full hand
|
|
|
|
|
hmmm... i think you may be in the wrong place for this kind of question.
How much do you know about 3D graphics. If not alot you will need to start from the basics of 3D graphics.
If you can render 3D models(so to speak) then you could create a 3D array of pixels based on your 2D images. I assume your 2D images are RAW files? or something similar, i.e. two colors, 1 color for object, another color for space
|
|
|
|
|
Like a volume texture?
You may have to ray trace it to get your final (2d) view..
Although there are probably better ways.
|
|
|
|
|
How you do it depends on how your images are stored.
Is each image in a separate file? Are they bitmaps, jpegs or some other format.
I once did something similar where the images (horizontal slices through a head) were stored in a set of files.
Each file contained a 2D image as a sequence of integers where an integer corresponded to a pixel. I.e. the file was essentially a 2D array of pixels.
To get the 3D image I had to get the corresponding pixels from each file and monkey around with them. In other words I treated the set of files as a 3D array so I could take slices in horizontal or vertical directions.
Hope this helps but without knowing exactly how the images are stored I can't be more specific.
Regards
David R
|
|
|
|
|
Hi,
I want to know which process had called my application built using C# .NET.
Example:
Their is an application named "Example1.exe" build using C# .NET. When you open the file manully by double clicking or by any other way then, "Explorer.exe" is the parent process of my application. In this case I want to find that "Explorer.exe" is my parent process. Please help me with the code which has to be placed inside the Main() method of my application (Example1.exe) to find this.
Normaly when it is double clicked this is not important but in case if my application is called by any other application then i had to work accordingly.
ashok
|
|
|
|
|
|
Hi all,
i am new in C# environment.
i try to create a desktop application.
i have 2 classes (form1 & createXML)
the form1 located a textBox that called txtPhoneNumber.
now, when the user will write his phone number the application will send him an SMS.
the problem is that the txtPhoneNumber.Text doesn't send the user number to the createXML class.
the XML is look like:
strBuild = strBuild.Append("<to>"); //Destinations
strBuild = strBuild.Append(inputForm.txtPhoneNumber.Text); //input from the form1 Class
strBuild = strBuild.Append("");
but in the debug i see that there is no number. and there is no any hint for error.
any idea?
please help!!!
|
|
|
|
|
i didn't ignore the HTML tags........
fixed XML builder:
strBuild = strBuild.Append("<TO>");
strBuild = strBuild.Append(inputForm.txtPhoneNumber.Text);
strBuild = strBuild.Append("</TO>");
|
|
|
|
|
Why dont you look into using system.data.datatable
you can add columns names and data etc.
then you can use datatable.writexml() to produce the file for you
Just a suggestion BTW
|
|
|
|
|
Hi, thanks for the fastest answer!!
i don't need to add columns or names, the single integer in the XML is the txtPhoneNumber.
the XML is ok, but he doesn't get the phone number integer.
|
|
|
|
|
should you have a number as an integer? you will lose a leading 0 with some numbers.
your 'To' is a column name, no?
|
|
|
|
|
How exactly is inputForm getting into the createXML class?
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
namespace.TakeNumber inputForm = new TakeNumber();
then:
input get the txtPhoneNumber but without values......
|
|
|
|
|
Ido Shahar wrote: new TakeNumber()
That's why. It's an different instance so the new instance's txtPhoneNumber is empty
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|