Troubleshooting – imatest https://www.imatest.com Image Quality Testing Software & Test Charts Mon, 27 Apr 2020 15:30:41 -0600 en-US hourly 1 https://wordpress.org/?v=5.3 Some Imatest calculations up to v5.1 inappropriately averaged zeros with summary metrics https://www.imatest.com/2020/04/some-imatest-calculations-up-to-v5-1-inappropriately-averaged-zeros-with-summary-metrics/ https://www.imatest.com/2020/04/some-imatest-calculations-up-to-v5-1-inappropriately-averaged-zeros-with-summary-metrics/#respond Mon, 27 Apr 2020 15:30:41 +0000 http://www.imatest.com/?p=33900 Problem

Certain imatest calculations in version 5.1 and below produced zeros when the calculation was not determined. These zero values could be inappropriately averaged with summary metrics which lead to these summary metrics being underreported.

The problem includes, but is not limited to the following summary metrics:

  • Chromatic Aberration (CA) summary calculations CA_areaPCT_summary, CA_crossingPCT_summary, CA_R_G_PCT_summary, CA_B_G_PCT_summary where the individual outputs in CA_area_Pct_corner, CA_cross_Pct_corner, CA_crossing_R_G_PCT_corner, CA_crossing_B_G_PCT_corner, CA_crossing_R_G_Pxls, CA_crossing_B_G_Pxls, include zeros.
  • MTF Summary metrics where higher frequency MTF values that are not achieved, and incorrectly reported as zero (corrected in v5.1.28)

Solution

  • Take care not to use any summary metrics where the calculations output zeros
  • Upgrade to Imatest 5.2 where these indeterminate calculations are reported as NaN (Not a Number), and will not be included in any averages
]]>
https://www.imatest.com/2020/04/some-imatest-calculations-up-to-v5-1-inappropriately-averaged-zeros-with-summary-metrics/feed/ 0
MATLAB Runtime Update 5 or greater required by Imatest 5.2 https://www.imatest.com/2019/09/imatestlauncherror/ https://www.imatest.com/2019/09/imatestlauncherror/#respond Thu, 12 Sep 2019 20:08:38 +0000 http://www.imatest.com/?p=28234 Imatest 5.2 depends on the MATLAB Compiler Runtime (MCR) version 2019a (also known as v96), specifically Update 5 or later. The full installers for Imatest 5.2 include the installer for this MCR version, but the MCR installer will not always install over previous versions of the v96 MCR if they are present.

In this case, when attempting to run Imatest Master 5.2 using an older MCR 2019a version the following error will pop up:

 

In Imatest IT 5.2, a similar exception will be thrown to the calling interface when trying to start the Imatest library.

Resolving the problem

To resolve the problem, ensure that Update 5 or later of the MCR 2019a library is installed. The correct installer is automatically included in all Full Installers of Imatest 5.2 (not in Upgrade Installers). Alternatively, it can be downloaded directly from the MATLAB Runtime page.

To ensure the correct update version is installed, you must remove any already-existing installation of the 2019a runtime if it is of a previous Update version. This installation can typically be found at the following locations:

 

Operating System Default MCR 2019a install location
Windows C:\Program Files\MATLAB\MATLAB Runtime\v96
macOS /Applications/MATLAB/MATLAB_Runtime/v96
Linux (Ubuntu) /usr/local/MATLAB/MATLAB_Runtime/v96

 

]]>
https://www.imatest.com/2019/09/imatestlauncherror/feed/ 0
Imatest does not start, unable to read MAT-file https://www.imatest.com/2018/07/imatest-does-not-start-unable-to-read-mat-file/ https://www.imatest.com/2018/07/imatest-does-not-start-unable-to-read-mat-file/#respond Fri, 06 Jul 2018 20:41:31 +0000 http://www.imatest.com/?p=22950 If upon opening Imatest you get something like this:

 

Error: Error using load
Unable to read MAT-file C:\ProgramData\Imatest\mcr_cache\5.0\Master\mcrCache9.2\imates0\.matlab\matlabprefs.mat. File might be corrupt.

Some of your MATLAB files have become corrupted. You can solve this by deleting your CTF folder found at C:\ProgramData\Imatest\mcr_cache\5.0\Master\, then try starting Imatest again.

 

If you continue to have problems please email us with details of the issue at support@imatest.com

]]>
https://www.imatest.com/2018/07/imatest-does-not-start-unable-to-read-mat-file/feed/ 0
Undefined variable “py” or class “py.model.Message”. https://www.imatest.com/2018/07/undefined-variable-py-or-class-py-model-message/ https://www.imatest.com/2018/07/undefined-variable-py-or-class-py-model-message/#respond Thu, 05 Jul 2018 17:14:27 +0000 http://www.imatest.com/?p=22942 With the addition of python routines in Imatest 5.0, several components require a working python installation. When some installation problems occur, the user may encounter the error message:

Undefined variable “py” or class “py.model.Message”.

This is generally caused by Imatest being unable to locate the correct python interpreter, or python failing to install properly.

Solution 1:

Make sure the python interpreter was installed properly and that you have permissions to access it. It should install to:
 
C:\Program Files\Imatest\v5.0\Master\bin\python35
 

Solution 2:

Some customers get this error when they try to run python:
 

To resolve, Reinstall the Visual Studio C++ 2013 redistributable, this is in the Imatest installer or you can install it directly from Microsoft: VS 2013
]]>
https://www.imatest.com/2018/07/undefined-variable-py-or-class-py-model-message/feed/ 0
How to convert a color image to grayscale https://www.imatest.com/2018/01/convert-color-image-grayscale/ https://www.imatest.com/2018/01/convert-color-image-grayscale/#respond Tue, 09 Jan 2018 15:38:30 +0000 http://www.imatest.com/?p=20976 Sometimes an undemosaiced Bayer raw image gets improperly saved into a BMP or TIFF format that includes color channels that are all equal. In this case, Imatest will recognize the image as color, and not give you the monochrome read options that allow you to perform demosaicing or analyze the image as a Bayer raw.

Here are a variety of ways to convert a color image to grayscale:

Imagemagick command line utility

$ convert -type Grayscale rawcolor.bmp mono.bmp

GIMP / Photoshop

Image -> Mode -> Grayscale

 

ImageJ

From Image -> Tyoe -> Select the desired output bit depth

Irfanview

Ctrl-G or from the image menu select Convert to Grayscale

MATLAB

img = imread('rawcolor.bmp');
r = img(:, :, 1);
imwrite(r, 'mono.bmp');

 

]]>
https://www.imatest.com/2018/01/convert-color-image-grayscale/feed/ 0
Error in Extracting CTF file https://www.imatest.com/2017/12/error-extracting-ctf-file/ https://www.imatest.com/2017/12/error-extracting-ctf-file/#respond Tue, 12 Dec 2017 00:14:03 +0000 http://www.imatest.com/?p=20768 Error Message: Error in extracting CTF file to ‘C:\ProgramData\Imatest\mcr_cache\4.5\Master\mcrCache9.0.1\imates0’. Details: ‘Could not set last modified time: C:/ProgramData/Imatest/mcr_cache/4.5/Master/mcrCache9.0.1/imates0/toolbox/imaq/imaqextern/drivers/win64/genicam/genICam_v2_4/redist/Microsoft_VC80_CRT_x86_x64.msi: Broken pipe

Solution:

Your system is having trouble extracting Mathwork’s CTF archive. Here is what the possible causes are:
 
  1. Permissions issue. For example if the application is unable to delete old directory or create a new one.
  2. Time stamp issue. The CTF-file is re-extracted only when the time stamp on the CTFarchive is newer than the time stamp on the _mcr directory. If somehow an out-of-date _mcr folder has a newer time stamp than the CTF-file, the new CTF-file will not be extracted and there will be errors when running the application.
  3. Extraction issue. If some error occurred during CTF extraction, there could be a problem where some of the encrypted M-files are of an old version and others are the new versions. This could cause the application to partially run and then only have an error when it runs into an old encrypted M-file.
  4. Installer issue. If the _mcr directory is already in the package, the installer may not be updating all files properly leaving some older files in the _mcr directory thinking that the files already exist.
So, here are the steps you should try to resolve this:
 
1. Delete old MCR directories on your machine. These can be found at C:\Program Files\MATLAB\MATLAB Runtime, delete the contents of this folder.
2. Run the Imatest installer again as administrator, ensuring that the “Matlab Libraries” checkbox is checked and that you are running the full installer rather than the upgrade installer:
 
Inline image 1
 
3. After the installer finishes, run Imatest as administrator.
 
If this process does not fix the issue please email us, support@imatest.com.
]]>
https://www.imatest.com/2017/12/error-extracting-ctf-file/feed/ 0
Imatest Stops Working – Advanced Troubleshooting https://www.imatest.com/2017/07/imatest-stops-working-advanced-troubleshooting/ https://www.imatest.com/2017/07/imatest-stops-working-advanced-troubleshooting/#respond Tue, 11 Jul 2017 17:10:58 +0000 http://www.imatest.com/?p=19246 Recovering Mathworks Log Files

Please recover this log file and send to support@imatest.com

The log file name is called “mathworks_<username>.log”. Where <username> is the username of the user that ran the installer. Please see the instructions below to locate the log file depending on your OS.

Windows 10 \ Windows 8 \ Windows 7 \ Windows Vista

The installer log file will be located in the AppData\Local\Temp directory under the user account who ran the installer. The full path, as an example, is:

C:\Users\<username>\AppData\Local\Temp

A shortcut to get to this path is to enter the following into the address bar of File Explorer window, then press Enter:

%tmp%

Windows XP:

The directory is:

C:\Documents and Settings\<username>\Local Settings\Temp\mathworks_<username>.log

Linux:

The log file will be located at the following location:

/tmp/mathworks_<username>.log

Mac OS X:

Follow these steps to retrieve the installer log file on a Mac:

1. Log in as the user who ran the installer.

2. Open a Terminal window (you can use Spotlight Search to find Terminal)

3. Copy and paste the following command, and press enter to run it in Terminal. Do not edit the command, run it exactly how it appears below:

cp $TMPDIR/mathworks_$USER.log ~/Desktop

This will create a copy of the installer log file on the desktop. If the command fails, this means the installer log file is not being created. This could indicate that the installer is starting at all, and is thus not able to write the log file. If that is the case, additional information may be able to be obtained from the Console:

Applications – Utilities – Console (or use Spotlight Search to find the Console application)

Use the ‘Clear display’ button to clear out previous console messages. Then try running the installer again and see what is recorded in the console. You can save this information from console. This output may be helpful in addition to the installer log file.

All operating systems:

Forcing the creation of the log file in a specific location:

If the installer is not creating a log file, then you may need to create your own. You can run the installer in command prompt or terminal with a flag to force a log file to be created. You could use a command like the following to do this:

Windows:

/full/path/to/setup.exe -outputfile “C:\path\to\logfile.log”

or

Linux/Mac:

./install -outputfile /path/to/logfile.log

As a note, you can drag the installer into command prompt or terminal and command prompt will automatically populate the path of the installer for you. When defining where the log file will go, make sure it is a directory that you have write permissions. You may need to run command prompt as administrator (Windows) or the installer as sudo (Linux/Mac) in order to do this. 

]]>
https://www.imatest.com/2017/07/imatest-stops-working-advanced-troubleshooting/feed/ 0
Handling an Lightroom for iPhone RAW DNG file https://www.imatest.com/2017/03/handling-an-lightroom-for-iphone-raw-dng-file/ https://www.imatest.com/2017/03/handling-an-lightroom-for-iphone-raw-dng-file/#respond Fri, 31 Mar 2017 22:59:26 +0000 http://www.imatest.com/?p=17483 Adobe DNG converter for windows & mac can be used to re-save iPhone RAW files into supported DNG formats using the following custom settings:

We soon hope to will be adding native support for LightroomiPhone DNG RAW.

 

]]>
https://www.imatest.com/2017/03/handling-an-lightroom-for-iphone-raw-dng-file/feed/ 0
How to determine what processes are using a device https://www.imatest.com/2017/01/how-to-determine-what-processes-are-using-a-device/ https://www.imatest.com/2017/01/how-to-determine-what-processes-are-using-a-device/#respond Tue, 24 Jan 2017 18:42:52 +0000 http://www.imatest.com/?p=17828  

Windows

On Windows, determining which processes are using a given device is easiest using the Process Explorer. 

 

  1. Open the Windows Device Manager by searching for ‘Device Manager’ in the Windows taskbar.
  2. In the Device Manager, locate your device, right click on it and select Properties.
  3. In the Properties window, select the Details tab.
  4. From the Property drop-down menu, select Physical Device Object name.
  5. Right click on the the entry in the Value list and select Copy.
  6. Open Process Explorer.
  7. In Process Explorer, select the Find:Find Handle or DLL… menu item.
  8. Paste your Physical Device Object name into the Handle or DLL substring field and click Search.

            

]]>
https://www.imatest.com/2017/01/how-to-determine-what-processes-are-using-a-device/feed/ 0
Imatest shuts down intermittently due to video driver problem https://www.imatest.com/2016/03/imatest-shuts-down-intermittently-due-to-video-driver-problem/ https://www.imatest.com/2016/03/imatest-shuts-down-intermittently-due-to-video-driver-problem/#respond Tue, 15 Mar 2016 15:32:32 +0000 http://www.imatest.com/?p=15225 Symptom

Imatest version 4.2+ intermittently halts.  A MATLAB crash dump file is generated in the user’s %temp% folder.

The crash dump file will start with text such as:

Assertion in void __cdecl `anonymous-namespace'::mwJavaAbort(void) 

Cause

An older version of NVIDIA video drivers has compatibility issues with the new graphics libraries introduced in Imatest 4.2 (MATLAB R2014b+)

Solution

Update your video drivers to the latest version.

]]>
https://www.imatest.com/2016/03/imatest-shuts-down-intermittently-due-to-video-driver-problem/feed/ 0