By tonight I'd like to create an image from RGB data in a file

1 view (last 30 days)
I'm trying to use the RGB data in the attached text file to create an image. In full disclosure, this is for a challenge for a seminar happening this evening. I looked at tutorials/ info here and here but am quite lost. Thanks for any advice!
Also - you'll see that the RGB data is in three columns. The image is to be 315x560 pixels.
  6 Comments
John D'Errico
John D'Errico on 29 Jun 2020
What motives? Your motives are you want someone to solve your problem, so you can answer the challenge.
Maron El-Khouri
Maron El-Khouri on 29 Jun 2020
Edited: Maron El-Khouri on 1 Jul 2020
Madhan, you clearly accused accused me preemptively.
John - I want to solve the problem. I just wanted some advice on how to accomplish this with MATLAB! Gee whiz, you guys are a bunch of jerks! Good luck, MATLAB community, I'm out. Hope your goal is to turn new users away, because that's exactly what you're doing!!

Sign in to comment.

Answers (2)

darova
darova on 2 Jul 2020
I think you are looking for griddata

Image Analyst
Image Analyst on 2 Jul 2020
See my attached demo for scatteredInterpolant(). You could also change it to use griddedInterpolant().

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!