Finding The Brightest Area In An Image?
Aug 5, 2009
I'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).
View 3 Replies
ADVERTISEMENT
Sep 8, 2009
OK, so I just started this VB programming class at school. But I don't understand much because the teacher doesn't really teach us. He just types everything on the projector and expects us to keep up. We have this project in which we are supposed to build a form that accepts the length and width of a rectangle, and calculates the area and perimeter of the rectangle. CAN SOMEBODY PLEASE HELP ME?? I really have no clue how to do this, and more than half the other people in our class don't either, so finding help within the class is pretty much out of the question.
The user enters values for the length and width of a rectangle and clicks the Calculate button or presses the Enter key to activate that button. The application then displays the area and perimeter of the rectangle in the third and fourth labels on the right side of the form.
Specifications The formula for calculating the area is width * length. The formula for calculating the perimeter is 2 * width + 2 * length. The application should accept fractional decimal entries like 10.5 and 20.65. Assume that the user will enter valid numeric data for the length and width.
View 39 Replies
May 18, 2009
I need to be able to find a piece of the webpage source. It always starts the same, but as a random number behind it.
So sometimes it could be...
Example.com/123345
And Sometimes...
Example.com/098765
But will always start the same. I only need part of the source, not all.
View 6 Replies
Aug 14, 2011
I'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].....
View 3 Replies
Feb 15, 2011
find 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 Replies
Feb 26, 2010
How to zoom a particular area of Image in vb.net
Like e.g.,(50,50,100,100)
how to zoom this small region of an image I Already know how to zoom an image but not how to zoom a particular portion
View 4 Replies
Jul 1, 2011
i am new to vb. i have created a program which has work areas/image areas. i can create as many as i like and i have created a code to delete a work area. but i cant delete more than one and i cant find out how to fix the problem i will post my code so you can see what i have out so far,
[Code]...
View 17 Replies
Jan 18, 2011
I need to load a picture and save some areas into a database (like you do it on Facebook when tag peopple into pictures).I need to save de selected area and then, in another form, show the picture and the selected areas in blue?
View 1 Replies
Mar 27, 2011
I am currently working on image cropping software. Any idea how to make image under rectangle to be clear and outside area translucent?
View 5 Replies
Aug 12, 2009
I'm working on a Vb.net project. I have a form with a RichTextBox or a simple TextBox control. It contains hundreds of text lines, so the control has to be scrolled.
I want to send to a printer only the lines that are currently seen on the control window.
That is, I want to convert what I see into an Image and then draw that image thru e.Graphics.DrawImage.
As you can see, it could also be the case of a ListBox, a TreeView or any other scrollable control.
How can I grab that rectangle area and then convert it into an Image? The rest I already know how to do it.
View 1 Replies
Aug 3, 2011
i have a program with the ability to save view and scan images. i am currently working on making work area's. so i have two list box's. listbox one is for the image area name. listbox2 is to list the pages in selected image area (mouse click). i have created the form to show you and i will post a link below. i have started trying to do it but have got stuck. i use an input box to give the image area's names. but thats as far as i have got at the min.
i need to be able to make image area's and list/view the images in my picturebox. plus i would like to create a folder or how ever many the user makes behind the scene thats called whatever the image area is called and in that folder is the images the user has saved in that folder. sorry if this is hard to understand. i have asked on another forum but i didnt get what i wanted it to do.
[URL]
i have gave you a link so you can see what my form looks like so you have a slight understanding on what i want it to do. its work in progress so sorry if it looks rubbish.
by the way i can save an image but it only saves it one certaint place and i cant save more thasn one as it replaces the image. and as for the scanned image thats the same.
View 4 Replies
Oct 5, 2010
Is it possible to scan the pixels in webbrowser for an image that was loaded into my resources and then click on it? What I want to do:Have a reference image in resources Scan webbrowser1's PIXELS to see if it appears on the current page,Then if it does, Click somewhere in the region of the image.I do NOT want to search for a .jpg .png .gif .bmp etc. in the webbrowser.
View 10 Replies
Jan 26, 2011
I am using the following code to place a rectangle around a form / form control, however what I want to do is make my screen grey and only the form / form control area be displayed in colour.
Code:
I have googled for ages trying to find something on this, but with no luck.
To illistrate this better they are using the same functionality in snagit 10, please see below link to a page that has a video link showing this (23 sec into video)[url]
View 4 Replies
Sep 13, 2009
how to create a specific area to drag my form (ie: image, label). I found some code that works, however you can click anywhere and have it drag...
Const WM_NCHITTEST As Integer = &H84
Const HTCLIENT As Integer = &H1
Const HTCAPTION As Integer = &H2
[code]....
View 4 Replies
Aug 7, 2010
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 Replies
Dec 5, 2011
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 Replies
Oct 25, 2011
I 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.
View 1 Replies
Aug 20, 2011
I have to create an image that is to mimic a single clock rotating hand within a square area,and the user has to choose the width and speed of the rotation and the direction.i managed to create the square area with a hand inside,with this codes and variables,
(Dim Mygraphics As graphics = e.graphics
mygrqaphics.Draw Rectangle(pens.color x1,x2,y1,y2)
mygraphics draw line(pens.color,x1,x2,y1,y2),now i have to find codes and variables to rotate the hand or line within a square area.one point remaining constant the other moving.
View 1 Replies
Sep 22, 2010
I'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].....
View 13 Replies
Jul 9, 2009
I 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 Replies
Dec 5, 2011
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 2 Replies
Jun 11, 2012
Trying to set the viewable area to a smaller screen area and have it cycle through as the person moves using collision detection to move the backgroudn image. Here is the start but its off to a bad start so far.
Public Class Form1
Dim Mapx As Integer = 600
Dim Mapy As Integer = 2000
[code]....
Basically the forum size is set to 600x2000 but the client should only allow you to view 600x600. I want it to add +1 once you "collide with a invisable box I'll add and this will redraw the screen.
View 4 Replies
May 12, 2010
I designed a form and managed to fit graphics inside it. Picture box is 465 pixels high. Form1 is 500 pixels high. SnapShot of the screen verifies that the 500 pixel height is the overal height. It includes the upper Bar and lower frame. Is there an instruction to set the From's inner pixel size and not overal?
View 2 Replies
Nov 19, 2009
I guess thats what I need to do, Im trying to allow the user to right click on the top of my form, and my custom Context Menu Strip is displayed, not windows context menu strip. I guess somehow i would need to get the size and draw a rectangle on the non client area and see if the user has right clicked in that rectangle? if so how would I get the area of the non client area?
View 7 Replies
Mar 6, 2012
I'm looking for a way to scan a certain area of a PDF or Tif,
and extract the OCR regonizied text which will help me rename these documents I have.
What tools or libaries can I use in .NET to make a quick short program to rename
TIF or PDF files into their appropriate name coming from a portion of text that is on each file.
View 2 Replies
Mar 26, 2010
oksice there is no way to grab an image using its source i was wondering if there is a way to taking a screen pic at a certain x,y coordinates in a webbrowser1 then displaying it in a picture box.
View 3 Replies
Aug 11, 2011
When I add areas to mschart ,chart is printed in smaller size.
View 4 Replies
Mar 1, 2011
In an article in techrepublic about 10 tips to go from a beginner to an intermediate developer
one of the auther's suggestion was "try to become an expert in at least one area of focus" and learn advance idea in depth about that area. With this in my mind I have programmed for about a year mainly for database application in .NET envirnoment (VB/C#), Currently I want to focus or be an expert in at least one area of .NET environmt. As a resutl I had skimmed some area in .NET such as WCF,WPF, ASP.Net MVC ...etc (just reading an overview of different books). My current job . also demand on database programming mainly for desktop application.
So can you suggest me a list of areas of focus in .Net where I can delve on it beside my current job.
I am not sure whether they can be an area of focus I had some ideas such as SOA with WCF
MVC web application Database design and modelling
Edit @sajoshi I have some strength on data modeling and objected oriented design and mainly I like to work in domain modeling and object persistance with ORM tools.I have little interest on UI design.
View 6 Replies
Apr 30, 2011
I have the latest versions of VS 2010, .NET 4.0 and MVC 3 and I have a problem using areas in asp.net mvc 3 when using vb.net.
I do the following:
Create a new visual basic asp.net mvc 3 project. Select Razor as the "View Engin" and call the project "TestApp".
Create a new area called "Test", it will be in the folder: /Areas/Test.
Add a new empty controller called "PageController.vb" in /Areas/Test/Controllers/".
Add a new folder in /Areas/Test/Views/ called "Page".
[Code]...
These are identical with what you get if you repete steps 1-7 and use c# (only difference is that you will get c# code that is equal to above vb.net code).
I repete: If I do the steps 1-7 in C# it works, but it will not work in vb.net!
View 1 Replies
Jun 18, 2012
I would like to use Graphics.FillRectangle or Graphics.Clear with semi-transparent colour (e.g. ARGB=128,0,0,0) to darken entire area of the Graphics object except some specified (rectangular) area:I know this can be achieved with four FillRectangle calls, but I wonder if it cannot be done easier.I am aware of simple clipping (Graphics.SetClip), but this allows me to clip everything outside the specified area and I would like to achieve the opposite.
View 1 Replies