Ridgelet and Curvelet image processing package - image

I am working in image processing and I want to use ridgelet and curvelet transforms. Please could any one tell me about a good and tested package for such job. I tried the known "BeamLab" package but it seems that it does not work on windows 7 ". I tried the FastRidgeletTransform function and it gave me the error:
"Invalid MEX-file 'D:\Program
Files\MATLAB\R2010a\toolbox\BeamLab200\MEXSource\RidgeMEXSource\PseudopolarFFT_c.dll':
D:\Program
Files\MATLAB\R2010a\toolbox\BeamLab200\MEXSource\RidgeMEXSource\PseudopolarFFT_c.dll
is not a valid Win32 application."
Thanks in advance.

For curvelet I stronlgy recommend CurveLab (http://www.curvelet.org/software.html).Although you will have to apply for a commercial license if you plan using it commercially.
The problem you are facing with BeamLab is probably caused by a difference in CPU architecture of your MATLAB installation and BeamLab dlls. If you are using MatLab 64 bits for example you cannot use 32 bits version of BeamLab dlls.

Related

uk.co.mmscomputing.device.twain.TwainIOException : Cannot load Twain Source Manager

hi every one i was using uk.co.mmscomputing.device lib to scan images on my computer 32 bit but when i switched the project to another computer using 64bit system
i got this error =(
uk.co.mmscomputing.device.twain.TwainIOException: Cannot load Twain Source Manager.
at uk.co.mmscomputing.device.twain.jtwain.getSourceManager(jtwain.java:126)
at uk.co.mmscomputing.device.twain.jtwain.select(jtwain.java:154)
at uk.co.mmscomputing.device.twain.TwainScanner.select(TwainScanner.java:25)
at scan.TwainAppletExample.actionPerformed(TwainAppletExample.java:81)
at java.awt.Button.processActionEvent(Button.java:392)
at java.awt.Button.processEvent(Button.java:360)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
i searched all the day but with no result. thanks for ur answers
The possible cause of the issue is that you don't have 64-bit TWAIN DSM on the machine. Try running your application as 32 bit and test again.
Download TWAINDSM.DLL for 64bit and put it in C:/windows/system32

UnsatisfiedLinkError - GSvideo library on Processing

We're currently working on an art project where we're recording video with GSvideo library and showing another video simultaneously with VLC. Our project works fine on three Windows 7 computers we have tried, but the ones we have available for the exhibition gives the following error:
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError:
can't load library gio-2.0 (gio-2.0|libgio-2.0|libgio-2.0-0) with
-Djna.library.path=//Desktop/media_art_installation/sktetch/libraries/GSVideo/library\gstreamer\windows64.
Last error:java.lang.UnsatisfiedLinkError: Unable to load library
'gio-2.0': The specified module could not be found.
We noticed that the path includes both "/" and "\". We know that our school computers use Java 1.6. Neither we or our teachers or tech support can find the answer to our question. So, why doesn't it work on school computers?
The line that gives the error in our code is as follows:
movieMaker = new GSMovieMaker(this, 640, 480, "data/" + getCurrentFileName(), GSMovieMaker.THEORA, GSMovieMaker.MEDIUM, fps);
For now let's assume the spelling of the library path is not the problem...
If you parse the error you mention, you see that it cannot find the module. It lists a library path, which must be incorrect on the machines used for exhibition. Were the Win 7 machines 32- or 64-bit? What type of machines are used for exhibition? (Win XP? Macs? 32-bit 64-bit). Any difference between the test and exhibition machines would be a red flag.
Also, how are you pointing to this library? After Googling a bit I've come up with the following:
A thread on sourceforce recommends using the GSVideo.localGStreamerPath to point to the gstreamer library.
Another thread noted that using System.loadLibrary solved the problem (second to last post in thread).
So the second suggestion might look like this for you:
System.loadLibrary("/Desktop/media_art_installation/sketch/libraries/GSVideo/library/gstreamer/windows64");

How do you use xlsread with MATLAB and OS X?

When trying to call xlsread, I get the warning:
Warning: Could not start Excel
server for import, 'basic' mode
will be used. Refer to HELP
XLSREAD for more information.
The helpfile suggests to me because I am running OSX, I do not have an excel COM server running which results in this warning. I'd like to either find a solution or confirm that it is irresolvable.
Specifications: I'm running MATLAB R2011a and OS X Lion.
There are two main options:
Upgrade to R2012b, which allows reading sheets and ranges in Excel files on all platforms
Use any of the (somewhat involved) approaches discussed in this post of Undocumented Matlab

FMJ not working on initial download

I've written some application code using JMF, but would like to switch to FMJ to make delivery easier.
Unfortunately, on my Windows 7 laptop (where JMF works fine once installed), I downloaded fmj-20070928-0938.zip, uncompressed it, and ran fmjstudio.bat. As soon as I click on the webcam icon, I get errors which start with "WARNING: com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: C:\Temp\fmj-extracted\native\win32-x86\civil.dll: Can't find dependent libraries"
Any suggestions?
Although it is probably not a complete answer, a partial answer is that FMJ uses 32-bit libraries. I am fairly sure I was using a 64-bit java.
On a different Windows 7 computer I successfully got fmjstudio to run using a 32-bit java. Next step is getting it to recognize the camera for my own app rather than fmjstudio.

Windows 7 OpenLDAP Curl DLL Dependency Hell

I really hope someone can be of help to me because this problem has me totally stuck and frustrated.
Yesterday I installed a fresh and shiney new Windows 7 x64 onto a development box.
I got VS2008 installed, Tortoise SVN, did a checkout, compiled my currently project, all fine and dandy.
But when I go to run (either F5 in VS or just running the exe from the shell) I get a dialog box that looks like this:
(source: aliparr.net)
So I fiddle around and can't see an obvious problem. I bust out depends.exe, thinking maybe there's a dll missing, and I get this:
(source: aliparr.net)
So I play, finding different versions of gpsvc.dll and ishims.dll and putting them in with the .exe, No luck.
If I do a profile in depends (which follows the Output window of vs), I get this:
..
Loaded "c:\windows\syswow64\ADVAPI32.DLL" at address 0x75F20000 by thread 1. Successfully hooked module.
Loaded "c:\windows\syswow64\LPK.DLL" at address 0x76B20000 by thread 1. Successfully hooked module.
Loaded "c:\windows\syswow64\USP10.DLL" at address 0x761C0000 by thread 1. Successfully hooked module.
Loaded "c:\windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\MSVCR90.DLL" at address 0x70570000 by thread 1. Successfully hooked module.
Loaded "c:\users\ali\desktop\repository\development\trunk\spree\bin\debug\OPENLDAP.DLL" at address 0x001E0000 by thread 1. Successfully hooked module.
Exited "c:\users\ali\desktop\repository\development\trunk\spree\bin\debug\SPREE.EXE" (process 0x5D4) with code -1073741701 (0xC000007B) by thread 1.
So it seems openldap.dll is the last thing to get loaded before it all goes wrong. I require this dll because I use cURL within the application to do a little JSON communicating...
I've tried playing with moving files and trying differing dlls, but honestly I'm acting a little blind here. Can someone please help or point me in the right direction?
It should be noted these dlls and setup work fine in Windows Vista x64 and x86 - is this a Windows 7 thing?
Massive thanks in advance, I might still have some hair left after this is done.
Edit
I've now realised curl.exe dies in exactly the same way with openldap.dll - I guess some windows 7 issue?
Can you/does anyone have a curl without the dependency on openldap? Is there another lightweight C/C++ library out there that'll let me fetch a document over http and do the odd http POST ?
Thanks
I had a very similar problem myself: I was developing a C program (using the MinGW gcc compiler) which used the curl library to do http GET operations. I tested it on Windows XP (32-bit) and Windows 7 (64-bit). My program was working in Windows XP, but in Windows 7 it crashed with the same 0xc000007b error message as the OP got.
I used Dependency Walker on a down-stripped program (with only one call to the curl library:curl_easy_init()). I essentially got the same log as yours, with OPENLDAP.DLL as the last successfully loaded module before the crash.
However, it seems my program crashed upon loading LIBSASL.DLL (which was the next module loaded according to the log from Dependency Walker run on Windows XP).
When looking again in the log from Dependency Walker on Windows 7, LIBSASL.DLL indeed shows up a x64 module. I managed to get my program to run by copying a 32-bit version of the DLL file from another application on my harddisk to my program's directory.
Hopefully this will work for other people having similar problems (also for the OP if the problem still wasn't resolved after these years). If copying a 32-bit version of LIBSADL.DLL to your program's directory doesn't help, another module might cause the crash. Run Dependency Walker on both the 32- and 64-bit systems and look up the module name from the log of the successful run.
I cannot answer your questions completely, I've compiled libcurl on Windows 7 Professional x64 and I don't have any issues. Although I haven't compiled it with OpenLDAP support so I suppose that's where the issue lies.
Regarding the IEShims.dll, Dependency Walker usually reports this as a missing module. Can't remember the exact reason but it was something about loading it dynamically when it's not found in %Path%.
If you however need to debug this and are on Windows 7 then try doing a hard link from %ProgramFiles%\Internet Explorer\IEShims.dll to %windir%.
Although, I see on the screen dump that it sure looks like Spree.exe isn't loaded as a x64 binary, which could very well be it. There's a difference in loading exported functions and piping or exec() a binary, the first mentioned requires that the architecture is the same for both the importer and exporter.
I've also found that mine is trying to load a 64 bit version of LIBSASL.DLL - the one that came with my 64 bit Tortoise distribution. I also only need curl for pulling a bit of JSON data. I think the best solution is going to be to rebuild libcurl from source and exclude the LDAP since I don't need it anyway.
Similar issue here. DLL dependents GPSVC.DLL and MSVCR90.DLL.
I managed to get rid of IESHIMS.dll by setting my environment variables path to C:\Program Files (x86)\Internet Explorer. Surely that shouldn't need to be done!
Is there a fix to this yet?
libsasl requires ieshims.dll, if you don't have sasl support in openldap, then ieshims.dll won't be required.
If you use windows x64 you have to copy your dll to c:/windows/SysWoW64. I have had the same problem when i wanted use pthreads in windows os 8. When I was copied pthreads dll to SysWow64 the program was run sucessfully.

Resources