Error in opening LIF files
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi! I tried opening my lif files in matlab, but it always has the error codes. I used the HkloadLif codes by Hiroshi Kawaguchi and it says that it works perfectly with most people. These are the error codes I got.
>> HKloadLif
Error using HKloadLif>CheckTestValue (line 600)
Invalied test value at Object Memory Block
Error in HKloadLif>ReadObjectMemoryBlocks (line 640)
CheckTestValue(fread(fp,1,'*uint32'),... % Test Value 0x70
Error in HKloadLif (line 46)
imgList = ReadObjectMemoryBlocks(fp,lifVersion,imgList);
Would love some tips and suggestions! Thank you!
1 comentario
Walter Roberson
el 20 de Nov. de 2021
https://www.mathworks.com/matlabcentral/fileexchange/48774-load-leica-lif-file claims to have fixed some problems with the function you are using.
Respuestas (1)
Simar
el 4 de Mzo. de 2024
Editada: Simar
el 4 de Mzo. de 2024
Hi Lovina,
I understand the error messages you are encountering in the “HKloadLif” function suggest that there is an issue with reading the LIF file.
The error in “CheckTestValue” function at line 600 and the subsequent error in “ReadObjectMemoryBlocks” at line 640 indicate that the function is encountering unexpected data when attempting to read the memory blocks within the LIF file.
Here are suggestions to troubleshoot and potentially resolve the issue:
- Verify the LIF File by opening the LIF file with the original software used to create it (e.g., Leica Application Suite X) to ensure the file is not corrupted and is in a readable state.
- Load different LIF Files using the same HKloadLif script to see if the issue persists. This can help determine if the problem is with the specific LIF file or the script itself.
- Review the Error-Prone Sections and review the code around those lines to understand what the script is trying to do. Specifically, it is failing to validate a test value expected in the Object Memory Block. Understanding the expected format and data structure might give insights into why it is failing.
Please refer to the following file exchange links –
- https://www.mathworks.com/matlabcentral/fileexchange/48774-ci-imaginglif-access-leica-lif-and-xlef-files
- https://www.mathworks.com/matlabcentral/fileexchange/36005-leica-image-format-file-loader?s_tid=srchtitle_support_results_1_HKloadLif
Hope it helps!
Best Regards,
Simar
0 comentarios
Ver también
Categorías
Más información sobre Data Import and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!