Click here to Skip to main content
15,886,639 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
A useful application for correcting radial distortion when only a single image is available is described and the code provided here:


http://www.cs.ait.ac.th/vgl/faisal/downloads.html[^]

It is quite likely to have been developed and tested using win XP

I am not an experienced coder, especially of C++, so I would have great difficulty compiling C++ on XP or Ubuntu, even if I had VS or a Makefile.

What I have tried:

The code was originally compiled by the author of the *.html above, employing VS 10. I have not been able to trace the author or find any executable.
I downloaded the above to Win XP, but that XP does not have any VS and a CD I have with VS 2008 Express has a bad sector(s) for Ixpvc (C++), so cannot be loaded.
The VS sln and <pre>.vcxproj are provided, and I hoped using sln2mak.exe by Maria Adamsky (found on this site), I could produce a Makefile and use that on Ubuntu. However sln2mak.exe failed and so no Makefile.

It is hoped to use the correction software with 70 year old aerial photographs to resolve some historical boundary issues.
Posted
Updated 14-Apr-21 3:24am
v2
Comments
Richard MacCutchan 14-Apr-21 4:48am    
And? What are you expecting from this site? You can get a copy of Visual Studio free from Microsoft, and you can install g++ (also free) on Linux.

Probably your best bet would be compiling the code on a updated version of Windows, possibly using the latest version of Visual Studio Community Edition.
 
Share this answer
 
Comments
Member 15150762 14-Apr-21 6:48am    
The only Windows I have is XP and I keep it running because of some expensive peripherals it supports.
There is virtually nothing now available from Microsoft for XP - even the older Visual Studios or Visual Express.
For `modern' software, I use Ubuntu. But I am not a C++ coder, there is no way I could build a working Makefile for Ubuntu without weeks of effort. However I assumed it would be relatively trivial for a practicing C++ coder.
A possible solution is to use some virtual machine to emulate Windows XP and install some legacy VS.
Else try an older VS on Windows 8 or 10 with some older VS or an actual.

But MS has the history to break code, so you may run in some issues when you use newer VS.

Tip: you may use some compatibility mode settings
 
Share this answer
 
Comments
Member 15150762 14-Apr-21 6:48am    
The only Windows I have is XP and I keep it running because of some expensive peripherals it supports.
There is virtually nothing now available from Microsoft for XP - even the older Visual Studios or Visual Express.
For `modern' software, I use Ubuntu. But I am not a C++ coder, there is no way I could build a working Makefile for Ubuntu without weeks of effort. However I assumed it would be relatively trivial for a practicing C++ coder.
CPallini 14-Apr-21 7:17am    
With just two source files, you don't even nead a makefile. However, you do need the required CV libraries and troubles may arise if there is some Windows-specific source code.
Member 15150762 14-Apr-21 9:03am    
Thanks for the info CPallini. It has reduced the `variables' significantly. Being totally ignorant of VS and its structure, can you identify for me the source code files and the CV library files that are needed. Maybe I then have a chance of compiling on Ubuntu.
You really painted yourself into a corner by hanging on to WinXP for so long. It's getting to the point where the rest of the industry can event remember there was a Windows XP.

The only library the code seems to use (by it's own documentation!) is OpenCV.

The problem is this code hasn't been update for 9 years. You could go get the current OpenCV (opencv.org) and the code may not work with it because it may have to be updated to use the latest OpenCV library version, if that even still supports WinXP.

But, you're the only one who is going to be able to try this.
 
Share this answer
 
Comments
Member 15150762 14-Apr-21 9:51am    
Ah well! Some us can still remember punching in machine code via the front panel and reading assembler from paper tape on teletypes (with Arpanet->Internet not far behind). The initial objective of this project is to finally shift it to Ubuntu. I thought we would need a Makefile so that would be easier. However it is becoming clear that simply starting again on Ubuntu would be easier - just identifying the source and library files for that would be a big help for those of us completely ignorant of the VS structure.
Dave Kreskowiak 14-Apr-21 9:56am    
All you have to do is look in the source .ZIP. There's only two files that make up the application code. You don't even need Visual Studio experience to see that.

Just looking at the README in the source ZIP will tell you what you need for libraries. Just one. OpenCV.
Member 15150762 14-Apr-21 10:24am    
Thanks Dave. I am surprised! A colleague who is a `whiz' perl programmer but familiar with C, works at very technical levels and had a quick look at the files and judged it would take him too long to build a makefile and get the application working. That was quite convincing, coming from his level of expertise. I simply assumed there were some `traps' hidden in the VS files of which I was unaware. I will look more closely at it myself.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900