Finding Position Of Bright Spots On Binary Image?
Jul 9, 2009I have a binary image (Black/White) that showing several white spots (3 to 4 spots). Is there any method to identify the position (coordinate) for every white spot.
View 1 RepliesI have a binary image (Black/White) that showing several white spots (3 to 4 spots). Is there any method to identify the position (coordinate) for every white spot.
View 1 RepliesI'm trying to find a way to darken an image that can later have certain spots undarkened. I have tried by simply drawing a semi-translucent rectangle over the image, but I cannot figure out how to relighten a selected spot.
View 1 RepliesI'd like to verify if an image control has an image loaded . If it does , I want to unload that image (and load no image) , but if the image control has no image loaded , I want to load an image . Is it possible ?
If ImageMY.Image.Equals(Nothing) Then
ImageMY.Image = System.Drawing.Image.FromFile("C:ImageBlaBlaBla.jpg")
Else
[code].....
I need to basically search for either a string such as "I-AM-RIGHT-OVER-HERE" or search for a sequence of bytes and return the offset of where that string or byte sequence is at.
View 1 RepliesI have a binary file. If I look at it with a hex editor, the first values are:208, 207, 17, 224, 161, 177, 26, 225, 0, 0, 0, ... etc.It has a length of 330240 bytes I have tried to open it and read it into a string so I can manipulate it and write it back. No matter what I use, I either don't get the correct number of bytes or the values in the string are incorrect. The most common error results in the first values being: 63, 63, 17, 63, 63, 26, 0, 0, 0 .... etc.It is interesting that it appears that any value > 63 becomes 63.
I get the 2nd values by a simple loop:
For lnx = 0 To 99
Debug.Write(Asc(line.Substring(lnx, 1)))
Next
I have tried a whole number of ways to read in the file, including filestream, My.Computer.FileSystem.ReadAllText, File.io.readAllLines, etc.All either give me a string length of about 324000 (not sure why) or, if they do, don't have the correct values. Yes, I have tried various encoding options.
I need to find a string (sort of like: "D" & Chr(0) + "L" & Chr(0) + "S" & Chr(0)... ) so I can then replace that portion of the string with a new value, then write out the file.I use the ".indexOf" to find the data in the string.Why can't I load the file into a string? Or, do you know of an easy way to find some text (similar to above) in a file and then replace the next x number of bytes with a new value and close the file?
I am trying to find the position in a string of a perticular letter of the alphabet (Q), I have found a method to determine if the letter exsists in the string, but not it's position.
View 21 RepliesSay I have a two dimensional array
[0] [1] [2]
[3] [4] [5]
[6] [7] [8]
Now suppose I want to get the position of the number 6
I know with a one-dimensional array i can use Array.indexOf() but what would my options be with 2-dimensional arrays?
What would be the simplest way to find the n-th position of delimiter in a string.For example, say, I have a string variable called FullFilePath that contains the path of a file, like, C:SourceFiles<mthyr><subject><filename>.txt From this, I would like to extract out mthyr, subject, and filename, using the delimiter, "".
I was hoping string.IndexOf would let me find the n-th position of the delimiter "", in which case I can use the result to do a string.Substring. But it looks like IndexOf only finds the first occurence of a certain string, which means I would have to interate this somehow to look for the n-th occurence.
Or is there another method that will help me do this more efficiently.
how to find the row position/index in a data table, using a value from another table. For example, I use the row position from Linkingtable1 to get my value for CustomerID, but i want to use the CustomerID to search the CustomerTable for its row position, in order to show the Customers Name in a text box, As currently when loading the textbox shows the customerID. I understand the code to get the names from the rows in the datatable, its just finding the row position of the customerID.
View 9 RepliesHow to retrieve a binary image from a database using vb.net and insert the image into a GridView.
This is my DB
image (id as integer , img as varbinary(max))
Entered an 5 elements of an array so is has 4 index? I need to find the lowest and highest element of an array and their index position
Example: I enter 1 2 3 4 5
The output should be like this
The lowest is 1 and position of index is 0
The highest is 5 and position of index = 4
I'm trying to figure out the mouse position on the form, how do I do that?
View 2 Repliesfind a current and simple way to do this. I'm using VWD Express 2008 and SQL Express 2008.I'm able to get the client's path to the image file using an asp:FileUpload control on the web form.How do I upload the client's image file and display it in the web form's image control?How do I save it to the sqlserver? The image table is already set up with a "Image" data type column. Can the image be saved to the database as simply as other data types?
View 3 RepliesI am trying to read a 16bit binary file (tif image) and pixel values of the image ranges from 1200 to 4500. I tried to use BinaryReader using ReadUInt16 but I get EndOfStreamException Unhandled error. ReadByte method works fine with an 8bit tif file. I do not know how to read a 16bit image file using binaryReader. Shouldn't I use ReadUInt16 since values of pixels range from 1200 to 4500?
[Code]....
I need bright orange to be a color that I can select. As of right now I only have Color.Orange, Color.DarkOrange, and Color.OrangeRed to select from all of which are too dark of an orange. The program I am making scans in a "tag" and the tags are color coded. I thought it would be neat for the user if the back ground of the program that they were using to enter from the information the tag that they scanned would be the same color as the tag
View 1 Replieshow to get the color bright orange.
View 11 RepliesI have a camera with a LiveView function (images aren�t snapped, but they are directly sent to my computer), which I managed to connect with VB.net, so I have got the image in a picture box on my form.The next thing I want to do, is to gather 3 spots from the image... The spots are all red, something very similar to #FF0000 (it is a camera + lights, etc... some tolerance needed). So, can anyone help me here?
I think the working "check list" could be something like this:
- Get red, green and blue channels separated
- Change green and blue into gray scale (100% blue / green = black, 0% b / g = transparent)
- Put these b / g both into 50% alpha and put them over the red (which means where is both green and blue = black, only one of them = 50% alpha black, none = transparent)
- Somehow select the areas with most red
- Get center of these areas - my points
how can i seek the offset 255 from beginning and get image on length 4(ReadInt32) and put the image into PictureBox? i'm using VB.net
description
offset length Description
268 4 size of the image file in bytes
I'm looking to take a screen shot with my program and try to find an image inside of it. Is this possible?In other words, I am trying to find an image inside of a larger image. It would be great if it could be a screen shot of just the webbrowser form.
View 18 RepliesI have created in Visual Studio 2008 a Form with two buttons, a PictureBox and a TextBox. I've made the first button to load an image from my hard disk and I want to make the second button to convert the image into binary code and show the string in the TextBox. Image format is Jpeg. Here's the code for the first button:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PictureBox1.Image = Image.FromFile("D:\Pa.Pei\Pa.Pei. - Ergasies\4o Έτος\Ανάλυση Εικόνας\011.jpg")
[Code]...
is anyone know how to get BMP image from binary file?
Offset Length Description
100 4 BMP_offset
268 4 Cover_size
296 4 Cover_offset
I m design a media player in vb.net..now i play 1Gb video movie.. i want to set the commercial time like every 15 mint my video automatically stop and some commercials play automatically after complete commercials my video[code]...
View 6 Repliesconvert binary image to jpg or png one.i've saved some types of images in my database but now i want to display them but i can't do it
View 1 Repliesconverting an image file into binary text in VB 2010.I am working on a compression program and need to see the actual binary as text. I have code for converting text files to binary and it works fine but, need to attempt files with greater randomness that are typically uncompressable.(JPG's) I understand that the file conversions may be huge. I plan on manipulating the binary in smaller manageable chunks.
View 1 RepliesI'm working on a small project for the fun of it. One of my hobbies is astro-imaging and I take pictures of planets, nebulae gallaxies etc . One of the more challenging targets is the International Space Station. I have had some success with the ISS by manually aiming my telescope as the Station moves across the sky.
What I am trying to achieve is to write a program that will lock onto the brightest area of a webcam image. If the brightest area (which will be the ISS) is off center, then commands are sent to the telescope to recenter it.
So far I have been able to write code that talks with the scope, and I have been able to get a webcam stream to show on a Form.
So the last piece of the puzzle (well I am sure there will be other things that have to be worked out) is to identify the brightest area of the image. I am scratching my head as to how I should accomplish this.
I'm thinking I should dump pixel information into an array maybe, and establish which line and column has the brightest average values (I could then draw a cross hair over the image).
I have 2 images. One image is a large image and the second one is a small one. The small image has a copy of itself within the large image. I am wanting to find the coordinates of where the second image is located within the large image, a 'find feature' in other words. e.g, I might have an image with the word "Test" in it. And I want to find the coordinates of the letter 'e'...
View 8 RepliesI have a form, that when opened, displays the image from the webcam onto it.
It's a test, to ensure the webcam is working. A prompt appears that asks if the webcam is working. However, some testers are lying and I need to find a method to make sure they can't lie.
My team wants to use a large bar code that the tester has to hold in front of the camera.
So I need to figure out how to either read the bar code, or just read the text in the bar code, which reads, "* C A M *."
It looks like the image below, but much larger.
Does anyone know where I should begin? I was thinking about using GetPixel, but I'm not sure I could or if that would be reliable enough.
How to save image in binary format in vb.net
View 1 RepliesI've looked throu all of the SendMessage(messages) but there does not seem to be anything like WM_GetPos.Now I can accomplish through AHK with ControlGetPos, but for the life of me I can not figure out what Win API function they are calling to accomplish this.We have an order entry system we use, that I am trying to automate the printing of our reports (we have 4 per order form) to save time
View 9 RepliesI'm looking to achieve merging of two images. Right now I can get the desired output but its slow for bigger images than 640*480 since it will actually be operating on video frames at least @25FPS.What I'm doing right now is copy both images pixel by pixel, like this. Actually its in c++ but I've converted it to vb code for understanding..
Dim image3 As Pointer(Of Char) = New Char(w * h * 4 )
Dim image1 As Pointer(Of Char) = img1.getPixels()
Dim image2 As Pointer(Of Char) = img2.getPixels()
[code].....