How to convert 3D image to 1D data?

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

How did you make a 3D image out of 2D data?
Do you mean a 3D array with dimensions 5002x8x3?
What code did you use to end up with that?
I just used the command "image(2D_data)" to end up with a 5002x8x3 image.
Hey Viswanathan, Can you upload an original image?
Above is the processed image of the temperature data. I need to convert it back to temperature data. The yellow line shows the const temperature.

Sign in to comment.

Answers (1)

result=reshape(3Dimage,[1 rows*colm*depth])

1 Comment

Sir, I think you have misunderstood my question. I want to reverse the image mapping function and get the original temperature data which is not on the range 0-255 from the processed (.png) image.
Reference : Intensifying the response of distributed optical fibre sensors using 2D and 3D image restoration. (https://www.nature.com/articles/ncomms10870)

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Asked:

on 20 Oct 2019

Commented:

on 22 Oct 2019

Community Treasure Hunt

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

Start Hunting!