how i can get acces to binary file content pixel of image from ENVI logi (100*100) pixel coded each pixel in 16 bits in vhdl or in matlab , when i get acces i want to modify the file? thanks

  • \$\begingroup\$ Read in the bit stream with fread and parse it. \$\endgroup\$ – Voltage Spike Feb 23 '18 at 16:29
  • \$\begingroup\$ @ laptop2d can you explain more , i know the instructions how to read and write \$\endgroup\$ – elmakhloufi assaad Feb 23 '18 at 16:44

In MATLAB, use the imread() function (and friends).

In VHDL, you need a file object. Of course, this only works in simulation.

Seriously, have you read any of the available documentation?

| improve this answer | |
  • \$\begingroup\$ yes of course i read the documentation in the both MATLAB and VHDL . I know how i can read and write in VHDL txt format but in binary file its little difficult,i want some idea how i can get acces to binary file like creat a 2D array to store or the size of file ..., thankyou for your time \$\endgroup\$ – elmakhloufi assaad Feb 23 '18 at 16:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.