Ask Your Question
0

Encoding 32FC1 explained?

asked 2017-03-23 23:40:26 -0600

2ros0 gravatar image

updated 2017-03-24 09:48:58 -0600

What does 32FC1 mean? Intuitively it should just be floating point matrix of one channel but the process that I am receiving images from has an array of uint8.

How do I convert this data such that each pixel value is stored as an int?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2017-03-24 06:13:17 -0600

pi-null-mezon gravatar image

32FC1 means that each pixel value is stored as one channel floating point with single precision

edit flag offensive delete link more

Comments

Thank you. I updated the question asking about conversion of said values.

2ros0 gravatar image2ros0 ( 2017-03-24 09:49:55 -0600 )edit
LBerger gravatar imageLBerger ( 2017-03-24 09:57:15 -0600 )edit

The data I am receiving is not in an opencv mat. It's coming from another process which uses the opencv 32fc1 encoding convention but the data is received as a uint8[]. How do I arrange this so I can use the convertTo function?

2ros0 gravatar image2ros0 ( 2017-03-27 09:23:39 -0600 )edit

Sorry, but it is not clear what type of conversion you want to do? What you have on the input? What you want to get at the output?

pi-null-mezon gravatar imagepi-null-mezon ( 2017-04-14 07:11:46 -0600 )edit

@2ros0 did you solve converting problem?

sturkmen gravatar imagesturkmen ( 2017-08-29 15:46:36 -0600 )edit

@sturkmen no, I worked around it by converting into int at an earlier step - would still be useful to know how to interpret the bytes to convert to int though.

2ros0 gravatar image2ros0 ( 2017-09-26 15:21:03 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-03-23 23:40:26 -0600

Seen: 9,073 times

Last updated: Mar 24 '17