Read a .pfm file in Matlab? - matlab

I am currently working on a disparity map estimation project in Matlab. I am using the middlebury datasets including ground-truth disparities in PFM format. I don't know how to load this particular format in Matlab. Could anyone help me? Thanks
I have tried a simple load and then read in the documentation that the load function does not support the pfm format.

Related

Matlab Psychtoolbox Blink Rate Coding

I am trying to make a code that will extract the blink rate from my data in matlab. I am using ET files from Simulink data on an eye tracker and blinks are seen as NaN values. I am struggling with what the steps are to actually extract the data? I can see the numbers that are saved but I dont know how to create a code to gather the information I need. The code I currently have is trying to use nanzscore but MATLAB isnt recognizing the function and I am unsure why.. Any help would be greatly appreciated.

Can .cnt file be converted to spectrogram images in matlab? if yes then how to do it?

I have an EEG signal with .cnt and .fdt files. I have to obtain images to use it as input to a cnn. Is it possible to convert the file to images? Someone please help me with this. If possible then specify how to do it.
You should download EEG tollbox such as EEGlab or FieldTrip. I prefer fieldtrip because it is script based while EEGlab is more about GUI. Here you can see fieldtrip's function ft_read_header that can deal with your files, and here is a basic script to read cnt files with fieldtrip functions

How to I populate .mat database in matlab

How do I train images and make a .mat file?
I am trying the following simple matlab program :
http://in.mathworks.com/matlabcentral/fileexchange/22030-image-retrieval-query-by-example-demo
Documentation
https://ece.uwaterloo.ca/~nnikvand/Coderep/imQuery/documentation.html
Now, this zip package already includes a .mat file which has histograms of all the sample images provided for querying.I want to query over my own sample-set of images.
I figured out that I need that getimagehist function to calculate the histogram and populate a database of my images in .mat format. but how exactly do i do it? I am a newbie in matlab that's why i have no idea. A little guidance/help will be greatly appreciated.
In Matlab, the .mat format is used for saving Matlab workspaces. You can create .mat files with
save(filename,variables)
It is documented here: http://se.mathworks.com/help/matlab/ref/save.html
If you need help in creating the histograms from images, check imhist: http://se.mathworks.com/help/images/ref/imhist.html
As an example of saving a histogram in .mat file
myHistogram = imhist(image);
save('myMatFile', 'myHistogram');

Open-cv haar trainer app

i am trying to train a classifier of an object. I have tried to train it in MATLAB and i am getting good results. But the generated output .xml file can't be used in open-cv. so can anyone tell me how can i use the MATLAB generated .xml file in open-cv or can anyone give me some link to app where i can directly put my positive and negative images and it can do all the training and give me out .xml file in open-cv.
Thanks in advance
Here you can find several .exe that will help you to train your OpenCV classifier.
And here you can find a tutorial. Hope it helps!

Using MODIS Terra TIF file to get land-water map

I am able to read the modis image into Matlab. And I want to do some simple calculations. But, how do I access the different bands in Matlab?
So, I have downloaded the 7-2-1 tif data (Not HDF) from the MODIS website and I want to create a map that shows flooded and non-flooded regions. I would like to do ISODATA classification in Matlab (And also in ArcGIS or ENVI). So far I have read the data into both ArcGIS and Matlab. But I am not able to use the different bands (7-2-1).
But I am not sure how to proceed.
This is an example MODIS image: http://lance-modis.eosdis.nasa.gov/imagery/subsets/?subset=USA6.2013323.terra.721.1km
And I am using Geotiffread
I have
ArcGIS 10 (All tools)
Matlab
ENVI
Could you please guide me?