Tag: matlab

Useful Bits of MATLAB

Generating a unique ID (UID):

uid = floor((now – floor(now))*1e8);

Seg-2 Reader for MATLAB

So I have been looking for a seg-2 reader for MATLAB for some time now.  For those of you who don’t know, seg-2 is a file format for storing seismic data.  Anyways, I’ve googled “seg-2 reader  MATLAB” for sometime and came up with some shareware software and some broken links pointing to MATLAB code.

Today, I have found some MATLAB code here.  For posterity, I will post the code here as I do not know the volatility of the site hosting the code.

USRP / Simulink Interface

I had been looking for some time for an interface for the USRP/GNU Radio to MATLAB Simulink. Well, I went looking through the MATLAB forums today and saw that someone responded to my post.  I checked the GNU Radio forums to make sure this information was seen to the users of that listserv.  I found where it was announced on there though the link didn’t work.  However, I did some searching and found the interface here.

Matlab and the AMD Athlon XP 3200+

So I just purchased a person copy of Matlab.  I start to run my hyperspectral toolbox upon it only to be greeted with Matlab segfaulting.  I traced back the error to the inv() and eig() functions.  For a little test, I constructed a one line program that invokes the crash:  clear; inv(eye(2));

Now, I begin to dig and dig to find the reason for the problem.  I search Mathwork’s website, I file a bug report, and I search Google.  I finally find an answer to my question here.  To make a long story short, Matlab R2009a does not support processors that don’t support SSE2 instructions.  This is ridiculous!  It’s one thing to support backwards compatibility for software, but not for x86 compliant hardware?

I just bought a netbook which runs an Intel Atom and supports the SSE2 instructions set.  I attempted to install Matlab on that machine, since it was my server that Matlab won’t current run on, only to run into licensing issues since the licence is tied to a hardware ID.  This story is still unfolding — another story for another time.

Matlab Hyperspectral Toolbox Released!

I just released my Matlab Hyperspectral Toolbox.  Its available for download at:

http://sourceforge.net/projects/matlabhyperspec/files/

There are separate downloads for the code and the sample data files.  Im still getting the hang of how to handle sourceforge.net, but will have a webpage (wiki) up soon.

The current release features a function called hyperDemo which demonstrates two fully unsupervised exploitation chains, one utilizing ATGP and one utilizing ICA.

I am hoping in the next week to publish methods for doing ACE  as well as a few others.

Enjoy!

PS:  Project website now working and is located at: http://matlabhyperspec.sourceforge.net/

Matlab Hyperspectral Toolbox

I developed a Matlab hyperspectral toolbox as part of my Master’s thesis during 2006-2008.  I am currently in the midst of updating the documentation and cleaning the code.  I will release this code shortly on sourceforge and begin continued work on the toolbox.  Currently, the toolbox will have algorithms to estimate the number of materials in an HSI scene, compute endmembers, and compute material abundance maps (MAMs) using different constrained least square techniques.  I will be providing a demo with the toolbox which demonstrates usage of the functions to help everyone understand how to use the toolbox.

I plan on adding several HSI algorithms as well including:

  • ACE
  • GLRT
  • OSP
  • Sof the algorithms Josh Broadwater of JPL has come up with that are based on constrained least squares methods.
  • RX detector
  • New super-resolution methods based on material abundance map information
  • MNF
  • Destreaking algorithm (for processing Hyperion data)

If you are interested in getting involved with the project, please email me at first.last -At- gergltd.com.  If you are a current Penn State Schreyer Honors College student looking for a thesis topic, I have lots of possible projects for you to work on and money to fund you through Penn State.