the image below uses an RGB scale (the values of the scale are displayed on the image) to show the magnetic field strength at each point on the map. I've been struggling to find a way to convert this image into an array that shows the x and y coordinates of the pixel along with the magnetic field value at each coordinate (using MATLAB)Magentic field map u

  • $\begingroup$ You need a function that maps a colour to a value. Possibly what you have at the bottom right but in the form of a function. $\endgroup$ – lightxbulb Jun 13 at 12:21
  • $\begingroup$ i'm not really sure what to do i'm stuck :( $\endgroup$ – Ahmed Abdulla Jun 13 at 15:05
  • $\begingroup$ It's going to be very hard for us to help you if we don't have more information. What are you stuck on? Do you know how to sample the pixels of an image? Do you know how to read an image into memory? Do you have any existing code you can show us? $\endgroup$ – user1118321 Jun 16 at 1:37
  • 1
    $\begingroup$ if you cant figure out a function you can maybe just hard code the given values in the bottom right in the form of a map (key value pair) and just linearly interpolate if a value is in between. Don't know how accurate will that be though. $\endgroup$ – gallickgunner Jun 16 at 10:54

Your Answer

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

Browse other questions tagged or ask your own question.