I've extracted the raw image data from a Fujitsu RAF file taken with a S5-Pro using Libraw.
The data is in a somewhat "strange format" (I know about the diagonal image issue).
The data returned by LibRaw about the data is somewhat odd in that rawimage.sizes.height=3583, rawimage.sizes.width=3584 (these represent actual image size), but rawimage.sizes.rawheight=1444 and rawimage.sizes.width=4352 (shape/size of raw_image grey scale data array).
So I cannot iterate over the image using height and width as I do for other raw file formats.
Has anyone here "been there, done that" and knows how I transform the data hung off the raw_image pointer to get an image 3584 wide by 3583 deep and the "real" image diagonally across it?
Thanks
David
The data is in a somewhat "strange format" (I know about the diagonal image issue).
The data returned by LibRaw about the data is somewhat odd in that rawimage.sizes.height=3583, rawimage.sizes.width=3584 (these represent actual image size), but rawimage.sizes.rawheight=1444 and rawimage.sizes.width=4352 (shape/size of raw_image grey scale data array).
So I cannot iterate over the image using height and width as I do for other raw file formats.
Has anyone here "been there, done that" and knows how I transform the data hung off the raw_image pointer to get an image 3584 wide by 3583 deep and the "real" image diagonally across it?
Thanks
David