I have .oxy4 data from the Oxysoft Oxymon system. I use the Oxysoft2Matlab function to convert those data to .nirs.
In line 1437 or so of Oxysoft2Matlab it says: "nirs_data.d=rawvals". Then it says: "difference in OD definition ln vs log".
Then, the Oxysoft2Matlab function has a built in line in which the data are converted from OD to raw I assume. That line is, at ~ line # 1434 : " 1/.exp(log(10).*[rawvals])" .
Then, later in the toolbox when going from raw->OD in "OpticalDensity.m", it uses : "dOD= -log(raw/mean(raw))".
If you take a vector (say, [1,2,3,4,5]) and apply the OD-> raw and raw -> OD conversions, you don't get the original vector back. I don't understand why the OD->raw or whatever and raw-> OD conversions would not just give you the original values back.
I have .oxy4 data from the Oxysoft Oxymon system. I use the Oxysoft2Matlab function to convert those data to .nirs.
In line 1437 or so of Oxysoft2Matlab it says: "nirs_data.d=rawvals". Then it says: "difference in OD definition ln vs log".
Then, the Oxysoft2Matlab function has a built in line in which the data are converted from OD to raw I assume. That line is, at ~ line # 1434 : " 1/.exp(log(10).*[rawvals])" .
Then, later in the toolbox when going from raw->OD in "OpticalDensity.m", it uses : "dOD= -log(raw/mean(raw))".
If you take a vector (say, [1,2,3,4,5]) and apply the OD-> raw and raw -> OD conversions, you don't get the original vector back. I don't understand why the OD->raw or whatever and raw-> OD conversions would not just give you the original values back.
Is there a mistake somewhere?
Thanks, Nathan