Hi Anju,
I understand that you are facing issues in reading a FLIR recording in SEQ format using MATLAB and looking to convert SEQ file to a MAT file.
Reading a SEQ file from a FLIR camera and converting it to a MAT file in MATLAB can be a bit complex because SEQ is a proprietary format used by FLIR for storing sequences of thermal images. However, FLIR provides a software development kit (SDK) called FLIR Atlas SDK for .NET that can be used to read SEQ files. Use this SDK in combination with MATLAB's .NET interoperability features to read the SEQ file and then save the data to a MAT file. Below are the steps to follow:
- Ensure that you have installed the FLIR Atlas SDK on the system. This SDK is provided by FLIR Systems and is necessary for reading SEQ files produced by FLIR thermal cameras. Download the SDK from FLIR Systems' official website and follow their installation instructions.
- MATLAB has the capability to interact with .NET assemblies. Load the FLIR Atlas SDK assembly into MATLAB and use it to read the SEQ file.
- Use the functions provided by the FLIR Atlas SDK to open and read frames from the SEQ file.
- Once have the image data in MATLAB, save it to a MAT file using the “save” function.
Here is a sample code to get started. Please note that this code assumes to have the FLIR Atlas SDK installed, and a Windows machine is being used, as the SDK is for the .NET framework:
dllPath = 'C:\Path\To\FLIR\SDK\YourSDK.dll';
NET.addAssembly(dllPath);
seqReader = Flir.Atlas.Image.ThermalImageSequence();
seqFilePath = 'C:\Path\To\Your\File.seq';
seqReader.Open(seqFilePath);
numFrames = seqReader.Count;
thermalImages = cell(1, numFrames);
thermalImage = seqReader.ThermalImage;
imageData = thermalImage.ImageProcessing.GetPixelsArray;
thermalImages{i} = imageData;
save('ThermalImages.mat', 'thermalImages');
Please note that the Code provided is a general example, and it may require modification or added adjustments to work properly in a specific context or environment. One would need to replace the DLL path and SEQ file path with their actual paths and may also need to adjust the code to match the specific classes and methods provided by the FLIR Atlas SDK that one is using.
If not familiar with .NET interoperability in MATLAB or the FLIR Atlas SDK, or if encountering any issues, please refer to the following documentation links:
Hope it helps!
Best Regards,
Simar