Hi Pankaj, This email list doesn't directly address the Nuke dev team at the Foundry, it's a user list for people interested in Nuke development. To ask questions of the Foundry directly you should email them at [email protected].
You need to look at the documentation describing the ChannelSet/ChannelMask and Channel structures because you have to understand how channel data is organized in Nuke. Each pixel in an image has multiple 32-bit float channel planes that are not interleaved in memory so if you want to access the R, G, & B planes at the same time then you need to manage 3 float pointers. The best way to understand how image processing plugins work in Nuke is to look at the examples in the NDK documentation. There are several examples that access RGB simultaneously and 'saturation.cpp' is a good place to start. Nuke's image pipeline is always 32-bit float and there are no byte or 16-bit read/write methods like in Shake, so you need to do the conversion to byte yourself. Usually you need to apply a gamma function and dither to the data during quantization, so look at the functions in DDImage/LUT.h which provide convenience conversions for this. Look at the *Writer example plugins for how these functions are used - 'pngWriter.cpp' is a good example. Good luck, -jonathan On Oct 9, 2013, at 8:23 AM, Pankaj Deshmukh wrote: > Hi > Dev team, > > See i understand pixel_engine. it takes all input pixel which i can > iterate by foreach loop. And get value of only pixel in float data. > and it goes to the out to row.but i hopefully request you that please tell me > how i get each R,G,B value in byte and how i past it to out row at specific > index where i want. Overall first i want image data R G B value. > And i want to process it and show the output through outptr*. > Please i am waiting for your reply and please tell me any example related > above > > -- > Thanks > Pankaj Deshmukh > _______________________________________________ > Nuke-dev mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
_______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
