Fourier Transform For Images?
Apr 6, 2011Fourier Transform for pictures in Visual Basic?
View 1 RepliesFourier Transform for pictures in Visual Basic?
View 1 RepliesI need to transform bitmap images with their 4 corner points moved from one location to another.Any code that can run on Windows, C#/VB.NET preferably, even help how to use scriptable programs like Paint.NET or Photoshop would be accepted
View 4 RepliesI'm reading data from the microphone and want to perform some analysis on it. I'm attempting to generate a spectrum analyser something like this:
What I have at the moment is this:My understanding is that I need to perform a Fourier analysis - a Fast Fourier Transform ? - to extract the component frequencies and their amplitudes.
Can someone confirm my understanding is correct and exactly what type of Fourier transform I need to apply?
At the moment, I'm getting frames containing 4k samples from the mic (using NAudio). The buffer I've got is 16bits/sample (Signed Short). For reference, the above plot shows approx half a frame I'm coding in VB so any .Net libraries/examples (preferably on NuGet) would be of most use. I believe implementations vary considerably so the less I have to massage my data, the better.
What I am looking to do sounds really simple, but no where on the Internet so far have I found a way to do this in DotNet nor found a 3rd party component that does this either (without spending thousands on completely unnecessary features).Here goes: I have a jpeg of a floor tile (actual photo) that I create a checkerboard pattern with.In dotnet, it is easy to rotate and stitch photos together and save the final image as a jpeg.Next, I want to take that final picture and make it appear as if the "tiles" are laying on a floor for a generic "room scene". Basically adding a 3D perspective to make it appear as if it is actually in the room scene.Heres a website that is doing something similar with carpeting, however I need to do this in a WinForms application:Flor Website Basically, I need to create a 3D perspective of a jpeg, then save it as a new jpeg (then I can put an overlay of the generic room scene).
View 2 RepliesThere is a bug in my code somewhere. It has a form with 5 input fields and 5 output fields. The algorithm is supposed to do a forward DFT and then immediately do a reverse DFT on the same data - so the output values should be the same. However it returns garbage! as I cannot see where the bug is.
[Code]...
I am grabbing some XML from an API and I want to tranform it before I put it into my dataset. I can't quite piece it together. I am trying to work from the examples in the documentation, but all I find are examples with reading and writing to the filesystem and I am not interested in storing things in the filesystem for this.
I am trying to piece together (1) xmlReader.create(URL) -> (2) xslcompiledtransform(xmlreader,xmlwriter) -> (3) get xmlwriter it into an xmlreader -> (4)dataset.readxml(xmlreader).
I can't figure how to do (2) and (3). How do I initialize the xmlwriter properly and feed it to an xmlreader?
After several hours of browsing google, wanted to check with one of you experts. I have made a winform application to read data from PABX (telecom) device. My application is listening to a particular port and once data received it passes to the data_hander. Application is working fine. But I�m facing a issue in received data string. From PABX system, it sends start and stop bit within the text string. It sends chr(2) as start bit and chr(3) as stop bit. But when my application reads the incoming data stream as follows,
ReceivedData = System.Text.Encoding.ASCII.GetString(bytes, 0, bytes.Length).Trim(Microsoft.VisualBasic.ChrW(0))
It does not recognize the start and stop bit as it sends from PABX. It just replace chr(2) and chr(3) with space and shows rest of the string. The issue is, I just want to take the same string and forward to another application and it needs this start and stop bits as it is to read the string properly. Could somebody guide me how to read this characters from PABX system or at least include them to the received string within my application as send to the other application?
Using the FileHelpers library to do some great things in VB.NET. Parsing files with dynamic classes built from text file templates. One thing I can't find: A way to read in a single record and determine that it should result in the generation of two records.[code]Ideally in this next line I would like it to see certain conditions and be able to generate two records from a single source line. Dim PayRecords() As Object = engine. Transform Records(FromRecords)Alternately, if there is a way to implement the "ITransformable(Of ..." TransformTo() and have it return multiple records, I could put the logic in the dynamic class definition TransformTo() method.[code]
View 1 RepliesQuestion: I have data that I retrieve from a database, which looks like this: Now I need to transform it to the below format, in order to be able to draw a piechart. In ReportingService, there is the Matrix control to achieve this, but what can I use to achieve the same in ordinary C#, in order to render it to a PieChart image ? Note that the number of buildings as well as the usage-types is variable and not known ahead of time.
[Code]...
how to transform my textboxes to excel spead sheet within my programe
View 15 RepliesI do have third party application which produce it�s reports in PDF format. Those reports are having images and different kind of alignments in the pages. So I need a code or guidance to make an application to transform the exact appearance of the PDF file in to Excel. My Issue is the PDF does not have table kind of thing to identify by regular pdf to excel conversions.
View 3 RepliesI am a beginner of VB and i have no idea how to work on it.
View 5 RepliesI am tying to get xslt2 transformation using XQSharp, but i get an exception when trying to call ApplyTemplates.[code]
View 1 RepliesHow can I transform this code to a function (anyone can do it for me?)? Otherwise I have to use this long code again and again..
[Code]...
I have this code:
Public Class Transform
Dim inputFile As IO.StringReader ' Object variable
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles ofdOpenFile.FileOk
[code]....
And I am getting these errors:
'Private Sub Transform_Load(sender As Object, e As System.EventArgs)' has multiple definitions with identical signatures. Line 15
'strOutputPath' is not declared. It may be inaccessible due to its protection level. Line 51
Type 'XslCompiledTransform' is not defined. Line 83
I'm using XamlWriter, XML Transform (with XSLCompiledTransform), and XamlReader to create deep copies of a user control with multiple user controls and lots of inheritance.
I have it working and am using it in my Print and Print Preview logic. The problem is that it's SLOW and I need to speed it up. Currently when the user selects Print Preview it takes about three seconds for the view to display. I need to reduce this to less than one second!
[Code]...
I have 2 consecutive images from a camera and I want to estimate the change in camera pose:
I calculate the optical flow:
Const MAXFEATURES As Integer = 100
imgA = New Image(Of [Structure].Bgr, Byte)("pic1.bmp")
imgB = New Image(Of [Structure].Bgr, Byte)("pic2.bmp")
grayA = imgA.Convert(Of Gray, Byte)()
[Code]...
How do I calculate the new position and lookat?
If I'm doing this all wrong or if there's a better method,
how do i recieve webcam pics and transform each to a string ?
View 18 RepliesI need to copy an array to a linked list OR transform the array in a linked list.How this can be done in .NET (C# or VB)?
View 3 Repliesi need to create a function for transforming an xml document using xslt. I am able to copy the document using xsl:copy-of, however it's not copying the root of the source xml document. As shown below, the root of the xml should be <List xsi:noNamespaceSchemaLocation ~>: [Code]. My IDE is Visual Basic .Net 2008. I need to reproduce the xml file with the SName attributes sorted in ascending order.
View 3 Repliesi have a small program with random generator when i try to transfer the textboxes to excel i have problem?
View 5 Replieshow can i transform collection of textboxes to integer
View 11 RepliesHow to write a program to transfrom DDMM.SS (2218.3118 DDMM.SSSS) to Radian mode, which 2218.3118 is export from the GPS reciever.
dd.mm.ss -> dd.mm -> Rad
22'18'31.18" = 22.3086' = 0.38936Rad
2218.3118 (DDMM.SSSS) to 22'18'31.18" (DD.MM.SS) to 22'3087' (DD.MM) to 0.38936 (Rad)
Is there any function (VB.NET or C#) that can transform an English word into its singular or to its plural form? I was thinking of having a database that contains all words in English as well as their plural form but I also think that it is stupid since that will be huge and besides there are rules in English on how to translate a word to its plural form, so why not create a function that does the transformation?
View 4 RepliesI'm probably missing something really simple or trying too much at once but it's 16:30 on a Friday afternoon and my head is wrecked Basically, I'm trying to build an application that takes out put from a database query as XML and uses XSL to transform it into HTML which is then displayed in a web browser controll on another form.
I thought I break it up into pieces so I decided to just create an XML file and an XSL stylesheet and read this into the web browser control but all I'm getting is <HTML></HTML>
[Code]...
The idea is to scan a folder of images and then let the user navigate back and forth through the images using a couple of buttons.The problem is, I can only get it to return a single image, and not the whole lot. It's looks to me as though the images are getting assigned to the same index in the array. [code]
View 2 RepliesWhat type of connector do i need to actually save the Map data like point of the images (x,y coordinate) into the database . and then retrieve it to show on the page in asp.net and how do i go about doing it.
View 3 RepliesThe app i am working on is for creating theme for the iPod touch... It has to deal with LOTS of images (100's potentially) There will be the set of default images, and then the user created replacement images. I started loading all the defaults into a resx file... thinking then I could just pull them out. now that I started setting the default, this sucks! lol the app will do this, on load it will set all the images (variables) to the resx images then when a theme is loaded, it will replace the default with the user image (if the user img exists) otherwise, the default stays. Then the "screen" is drawn to show the user. so, here is just the images to build the wallpaper, dock, and status bar...
[Code]...
I was thinking to make an app to save images [or download images] to local hard disk. But to keep it easy, I want this app to create a small picturebox on form to show the thumbnail of downloaded image. Lets say a 5 pictureboxes has to be added with the thumbnails to show the recent downloads. A user can save the location where he wants to save the files on hard disk. A listbox or a dropdown menu will help in categorizing the images, like image1 in friends section, image2 in family section, image3 in others, etc... When the program restarts all the latest 5 thumbnails has to be loaded in pictureboxes and the directory that was chosen. Finally, a button that shows the downloaded images into original image file size one by one or a slide show. Is it possible to make such program?
View 2 RepliesI am developing a visual basic 2008 express edtion program of an organisation that should get images from the system and display on image/picture box. further the program should save the displayed image in access database so that it can be retrieved together when you want to search the information about that particular employee.
View 7 Replies