I need to compression a binary image(matrix of size RxC) in a lossless manner. For this I hope I can use JBIG compression, and I have downloaded the toolbox from the following link.
I added the extracted folder to Matlab path, and I tried to call the perform_jbig_coding function in the following way
please note that x I defined as a random binary matrix of size 256x256 bits.
But while using this I am getting the following error :
_ _ 'pbmtojbg' is not recognized as an internal or external command, operable program or batch file. Error using perform_jbig_coding (line 22) Unable to open Jbig file.__
Anyone can help me to resolve this error? or Anybody can share the JBIG pure matlab code for compression and decompression?