Quantcast
Channel: Adobe Community : Popular Discussions - DNG SDK
Viewing all 4036 articles
Browse latest View live

raw image size > 2.147 Gb?

$
0
0

Hello,

 

Is there a dng specification raw image size limit? I would like to save huge raw images. We changed the kMaxImageSide from 65000 to 300000. I know the dng's which are bigger then 65000 per size can't be opened in other dng readers. But also if you just have a raw image 30000x30000 it can be bigger then 2.147Gb. It's depends on bits per pixels. For now we have images like 7500 x 60000, but soon we want to save raw images like 7500 x 314169 or better 7500 x 628328. That means for the first image we have raw image data like 4.4Gb and for the other 8.8Gb. Of course this is just possible on a 64bit system.

 

Is there any plan to support huge raw images (64bit dng sdk)? If so when will you release it?

 

Best regards,

Marius


Rather basic question:

$
0
0

I'm currently writing a lens correction and image optimization program that (if everything works as planned) will perform the following functions:

 

1. Removal of image blurring introduced by the lens, camera AA filter, diffraction, and RAW converter demosaic algorithm.

 

2. Correction of radial and longitudinal chromatic aberrations.

 

3. Correction of coma, spherical aberrations, and other similar distortions.

 

4. Correction of barrel, pincushion, and the most complex forms of mustache distortion.

 

5. Vignetting correction.

 

6. Stacking multiple DNG images for focus or exposure blending.

 

The biggest hassle I'm encountering right now is figuring out the DNG SDK. I've downloaded it and browsed through it, but there's a huge number of classes, and the object hierarchy and their intended usages aren't clear to me yet. I'm trying to figure out how to accomplish the following tasks:

 

1. Open a DNG file (preferably the demosaiced linear RGB flavor), and read the image and metadata (especially camera model, lens model, focal length, and aperture) into memory.

 

2. Once the image has been processed, write it to a new linear RGB DNG file that can be opened in any DNG-aware application, with all original tags and metadata correctly preserved.

 

All of the internal correction operations are done on linear RGB data in the camera's native color space, so that setting white balance, selection of color profile, etc. is unaffected by the image correction operation. The user will have the exact same color processing options, ability to select white balance, exposure adjustments, and output color space selection as when working with the original RAW(s).

 

All I care about is opening a linear RGB DNG file (already demosaiced, so I don't have to open that can of worms) processing the image data, and then saving to a new DNG file that is identical except for the actual image data. Where do I start?

Saving a DNG

$
0
0

Hello, i have opened up a DNG profile and gotten a bit of info out of it. The stream is open as readonly. I want to make 1 change to it, that is the camera profile name. So after i have done this, i want to save the DNG profile back out. I know it's some sort of combination of host, a writeable stream, a negative and a writer, but the writer takes a thumbnail which i dont have. Can anyone point me to simple sample code for saving my profile out. Just an open profile and save to another filename would be fine.

 

thx for the help.

 

AC

Compiling dng sdk with xmp 5.1.2

$
0
0

I was trying to compile the dng sdk 1.3 (windows visual studio 2008), and I am hitting a snag with the XMP SDK - when compiling dng_xmp_sdk.cpp I get a:

 

error C2039: 'AppendProperties' : is not a member of 'TXMPUtils<tStringObj>'

 

Looking in the XMP notes I see that indeed AppendProperties has been decrepated in XMP SDK 5.1.2..

 

I assume I should be using an older version of XMP, but I cannot find it on the adobe website(s). Does anyone know where to find that ? Or am I doing something else wrong...

monochrome dng

$
0
0

Hello,

 

I have been writing my own DNG headers to raw sensor grabs successfully for a while now. These have all been CFA sensors but now I have a monochrome sensor in the mix and I would like to save these as DNG as well. I have tried a variety of settings with the PhotometricInterpretation, CFAPattern, CFARepeatPatternDim tags and have had no success. Excluding the latter two tags will produce a greyscale image with dcraw but photoshop will not open these DNGs. I could just save these images as PNG but everything else is DNG and it just looks nice when everything is the same.

 

Any ideas on header tags for a monochrome DNG?

 

 

Thanks!

jt

Enable multithreading in DNG SDK

$
0
0

Hi all,

I have to process very fast a large amount of DNG files (couple of thousands) and I have to do this on a regular basis. The processing is a simple conversion to TIF, white balance, and all other parameters are left default. The output is RGB 8 bit per pixel. I have tried libraw but it gets to 2.5 seconds per image and it is a bit slow.

 

Currently I get the following results from dng_validate:

Raw image read time: 0.064 sec
Linearization time: 0.020 sec
Interpolate time: 0.273 sec
Render time: 0.541 sec

This is about 1 second per file.

 

Is it possible to use multiple threads when calling render.Render()? It would be great to reduce the time to 0.3/0.2 seconds for this/

 

Are we talking about features that are not documented/flags to pass when compiling the library/complete re-write since the library was not designed with this in mind?

 

I poked through the code and found that there is some threading in the code:

void dng_area_task::Perform (dng_area_task &task,
                               const dng_rect &area,
                               dng_memory_allocator *allocator,
                               dng_abort_sniffer *sniffer)
    {
   
    dng_point tileSize (task.FindTileSize (area));
       
    task.Start (1, tileSize, allocator, sniffer);
   
    task.ProcessOnThread (0, area, tileSize, sniffer);
           
    task.Finish (1);
   
    }

but it seems that regardless how many threads they are, the tasks are perfromed single threaded.

 

thank you,

 

Calin

Creating a DNG from scratch.

$
0
0

Hi,

I'm trying to save camera raws(16 Bit Bayer pattern) I grab directly from an industrial camera in the DNG format.

By looking at http://fossies.org/dox/digikam-2.5.0/dngwriter_8cpp_source.html#l00188 - the only example I could find online - I have been able to create a file which Photoshop & co are able to read. However I had to do some guesswork. Specifically I had to specify a profile with the following lines:

 

prof->SetColorMatrix1((dng_matrix) matrix);

prof->SetCalibrationIlluminant1(lsD65);

negative->AddProfile(prof);

dng_vector camNeutral(identify.rawColors);

for (int i = 0; i < identify.rawColors; ++i)

{

    camNeutral[i] = 1.0/identify.cameraMult[i];

}

negative->SetCameraNeutral(camNeutral);

 

I don't have this information. Just adding the identity matrix produces a strange tint.

 

What is the simplest way of saying "the camera sensor is linear" and "I know nothing about the color temperature"?

 

I'm thankful for any help!

Crash when creating a Lossless-jpeg compressed DNG

$
0
0

Hi all,

 

everything is in the title i guess. I work on a legacy system, using DNG SDK 1.1 (upgrading is not an option). The software was originally desgined under win, and is now ported to mac os X. When saving an image to a dng format, an exception is thrown during the lossless jpeg encoding. Do you have any idea of what it might be? What tests can I run?

 

thansk

S.


Get DNG Date Created from dng sdk

$
0
0

I have successfully compiled the dng sdk and the validate app and I wondered what is a simple way to just get the date created out?

The current DNG Profile Editor cannot interpret 7.1 raw settings

$
0
0

Hi,

 

I am frustrated that the DNG Profile Editor is not able to apply Lightroom's or Camera Raw's settings since the new Process 2012 has been in effect.

 

This SEVERLY limits the usefulness of the Profile Editor. And yes I know it is a beta.

 

However, are there no plans to release a compatible version?

 

 

Thanks,

Juan

How to write manipulated image back to negative?

$
0
0

Hi all,

I would like to do some simple dng raw image manipulation like black image subtraction.

 

Therfore I though I would get the stage2 image (because working on stage1 is not  correct right?) of both the main-image and the black-image and create an image "main minus black".

 

Now I want to have this image saved back as dng as if it was the main dng.

 

just setting the new image as stage2 does not work because writeDNG uses the stage1 image which is set as fRawImage in buildStage2Image.

 

Setting as stage1 does not work too because it is already a linearized image.

 

How can I reverse the linearization?

 

Or are there other way to do this correctly?

 

Thank you all and best regards

Andreas

converting RGB to DNG without affecting color profiles

$
0
0

Hi guys

 

I'm working with the DNG SDK in C++ for some time now.  I need to be able to take a raw RGB (not camera raw) and convert it into a dng file.  After playing arond with it for a few days, I realized creating the camera profile drastically affects the resulting dng image.

 

I can't seem to produce a dng file that was identical to the input source.  My picture appears very washed out and I end up using the adobe color profiler to try to bring the image back close to it's original color.

 

I'm trying to find a way to produce dng files without the need to affect the colors in any way, the resulting picture should be bit identical to that of the raw RGB input file.

 

I'm not even sure if I can do this considering the usage of the dng format.

 

 

UPDATE

I've realized that my program is loading the RGB buffer into the fData of the stage3 image object.  I have a feeling I need stages1 and 2 but i'm unsure if I need to and if so, then i will probaby need a source DNG to produce those stage1 and stage2 unless I can get stage1 or 2 from stage 3 (appears it works vice versa).

 

I'm able to do the reverse (DNG to RGB raw) by extracting the buffer from the stage3 render.  but in this case, all the metadata has been filled in by the input DNG. However, going from RGB to DNG, I don't have the metadata to fill into stage 1 and 2.

DNG/XMP AppendProperties/ApplyTemplate

$
0
0

I downloaded the latest DNG SDK (1.3) and XMP Toolkit SDK (CS6).  The DNG SDK expects "AppendProperties", while the XMP has replaced that with "ApplyTemplate".

 

I then tried an earlier version of the XMP Toolkit (4.4.2), but then multple Quicktime SDK linking problems arose.

 

Are there any DNG/XMP versions which are compatable, or method of converting the function?

 

Thanks.

Convert Raw to DNG

$
0
0

Dear all,

I'm seeking DNG SDK assistance, and I'm trying to convert our raw file(only contains metadata from the sensor) to DNG format so that we can use white balance, demosaic,vignetting and so on. But I don't know how to get start with it. Any help from the experts would be greatly appreciated.

 

Best,

 

Caigao

DNG SDK build project cannot find the xml sdk

$
0
0

On win7/x64.  Installed dng sdk and all dependencies per the readme files.  xml sdk built OK with vc10 express, as 64 bit static and dll.

But the vc solution for dng_validate has incorrect names for the xml sdk build projects, so it cannot find those components.  Specifically it looks for "..\..\..\xmp_sdk\build\vc\XMPCore.vcxproj".  the actual paths in the xmp sdk are different and longer, like "..\..\..\xmp_sdk\build\vc10\dynamic\windows_x64".  Moreover there is no XMPCore.vcxproj there.

I suppose the real problem may be that the dng sdk project is trying to build it as .net managed code, while the xml sdk was built as open code.  So I guess what I am looking for is a way to build the dng sdk open.


Compression artifacts in validate dng output - proof attached

$
0
0

I have uploaded a zip file - out.dng is the output of validate dng.

 

https://dl.dropboxusercontent.com/u/9906333/dngs.zip

 

Look at the edges of the white chair - you will see classic jpeg compression artifacts.

Note that this is the default lossless jpeg conversion only.

I used the program as

 

dng_validate -dng out.dng <input>

 

I confirmed this with a build in Visual Studio using qDNGUseLibjpg=0

 

I would appreciate the admins looking at the provided examples.

Output of stage 1 (pre linearisation) and clarification

$
0
0

hi,

 

Scratching my head on this one.

 

I have some DNG RAW files and i'm using dng_validate to explore in more detail.

 

I'm looking at all the stages of processing via outputting uncompressed tifs.

 

What i would really like to understand is the nature of the source data. When i open the file in After Effects i can see that in the 16 bit tiff file, there are only values shown from 0 to 2048. These files are supposed to be 12 bit so i would have expected up to 4096 (i have some clipping in the file to max the value).

 

After linearisation these files occupy the full 16 bit but they appear to be scaled with adjustments to the black and white point, that's fine. In other words if i take the pre linear file and use the levels i can pretty much get the same effect of linearisation.

 

What i would love to know is whether the dng_validate is outputting the exact data in the source files or whether the RAW DNGs could be floating point and the dng_validate when outputting the pre linearsation file is missing some data?

 

So how close am i to the actual data in the RAW files, are DNGs stored as integer data?

 

Really appreciate any help!

cheers

Paul

DNG SDK - What a Complete MESS !!!!!

$
0
0

Hi - and sorry for this to be HIGHLY infriendly message

 

 

I have downloaded and installed ALL latest greatest of anything pertaining to the DNG SDK -

Followed ANY read me, configure, make, make install files available there.

Installed CMAKE and everything else....

 

I am on OS X 10.9 and USE the xCODE version of Mavericks

 

I am developing MANY different things and NEVER have problems.

 

 

I have in my life NEVER exprienced something as cumbersome and clumsy as this. NEVER!!!!

 

 

I am trying to compile/build the inlcuded and generic dng_validate project. And this proves to be IMPOSSILBE.

 

Simply put. I cannot figure it out. And I cannot do more that to follow the instructions provided in the SDK.

 

 

This is incredible and I am missing the words to describe anger I am feeling.

 

 

I realize this sdk is something that adobe cares nothing about - hence all the problems adobe are having with their own apps, which arent even capable of reading DNGs correctly...

 

To whomever, maintaining this SDK ---- You are doing a really bad job at it !!!!

 

 

Regards

 

Morten

Catpture date.

$
0
0

I just want to read the capture date from a dng file. How do I do that?

Embed only mosaiced data

$
0
0

Hi,

 

I would like to embed only the mosaiced image into the DNG. Is this possible? I have tried to comment BuildStage2Image and BuildStage3Image, but with no success. So any clue will be appreciated.

 

Thank you.

Viewing all 4036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>