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

1 次查看(过去 30 天)
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 个评论
John D'Errico
John D'Errico 2020-6-29
What motives? Your motives are you want someone to solve your problem, so you can answer the challenge.
Maron El-Khouri
Maron El-Khouri 2020-6-29
编辑:Maron El-Khouri 2020-7-1
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!!

请先登录,再进行评论。

回答(2 个)

darova
darova 2020-7-2
I think you are looking for griddata

Image Analyst
Image Analyst 2020-7-2
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!

Translated by