How to convert 3D image to 1D data?
Show older comments
I had the temperature temperature readings of a sensor which is 5002x1 double. I took the readings for different temperatures say 8 and made the temp as a 2D array of 5002x8 double. I converted it into a 3D image (.png) and did some processing. Now I want to convert this 3D image back to temp data. How can I do that?
6 Comments
Daniel M
on 20 Oct 2019
How did you make a 3D image out of 2D data?
Turlough Hughes
on 20 Oct 2019
Do you mean a 3D array with dimensions 5002x8x3?
What code did you use to end up with that?
TheRealTonyStark
on 20 Oct 2019
Turlough Hughes
on 22 Oct 2019
Hey Viswanathan, Can you upload an original image?
TheRealTonyStark
on 22 Oct 2019
TheRealTonyStark
on 22 Oct 2019
Answers (1)
KALYAN ACHARJYA
on 20 Oct 2019
Edited: KALYAN ACHARJYA
on 20 Oct 2019
result=reshape(3Dimage,[1 rows*colm*depth])
1 Comment
TheRealTonyStark
on 21 Oct 2019
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!