How can I map a list of 24x3 RGB elements to a list of 256 levels?
1 次查看(过去 30 天)
显示 更早的评论
I need to map a list of 24x3 values with each row represnting a RGB value to a list of 256x3 elements. I was advised that I would find the function polyfit helpful but I do not understand how polyfit works and how it maps elements. Any clarification or suggestions or a simple code snipped explaining how poyfit works would be helpful. Thank you.
4 个评论
Jan
2019-4-9
With polyfit you fit a polynomial to a set of data. You did not explain if you expect the 24x3 data table to match a polynomial and duplicate sample are mentioned the first time now.
Vague questions are welcome in this forum. It is thenature of questions, that some details are not clear to the asking person. As soon as all details are clear, the solution is usually trivial.
So please explain, why you or your teacher thinks, that the data table is approximately a polynomial.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!