Ok I printed to momentics output with this code
[color=red][code]//Filtering*********************************************************
int a,b;
float temp;
for(i=1;i<img.h-1;i++){
for(j=1;j<img.w-1;j++){
temp= Y[i-1][j-1];
//temp=(float)Y[i][j];
//printf("\nNew Value Y = %f",temp); //this is here!!!!!!!!!!!!!!!!!!!!!!!!!!!!
}
}
//********************************************************************[/code]
Momentics output:
[color=green]Welcome to the QNX Momentics IDE
gf_dev_attach() SUCCESS
Display Number = 1
Bayrak (flags) = 0
Driver Name = vesa - unaccelerated driver for VESA 2.00 compliant adapters
Vendor ID = 21299
Device ID = 34833
Index = 0
//***********************************
gf_display_attach() SUCCESS
Layers = 1
Main Layer index = 0
X Resolution = 800
Y Resolution = 600
Display Format = 5152
Refresh = 60
Changing Display Format = 4120
gf_layer_attach() SUCCESS
Layer is already in use
Creating Layer Surface SUCCESS
Context Surface Create SUCCESS
image library attach SUCCESS
Image flags = 30
Image Width = 20
Image Height = 20
Stride = 60
Bosluk = 0
Yatay = 60
Image *.bmp Data per pixels:
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
000||00255||02550||25500||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||255255255||000||
Success RGB to YCbCr
but when below code running:
[color=red][code]//Filtering*********************************************************
int a,b;
float temp;
for(i=1;i<img.h-1;i++){
for(j=1;j<img.w-1;j++){
temp= Y[i-1][j-1];
//temp=(float)Y[i][j];
printf("\nNew Value Y = %f",temp); //this is here!!!!!!!!!!!!!!!!!!!!!!!!!!!!
}
}
//********************************************************************[/code]
[color=green]Welcome to the QNX Momentics IDE
gf_dev_attach() SUCCESS
Display Number = 1
Bayrak (flags) = 0
Driver Name = vesa - unaccelerated driver for VESA 2.00 compliant adapters
Vendor ID = 21299
Device ID = 34833
Index = 0
//***********************************
gf_display_attach() SUCCESS
Layers = 1
Main Layer index = 0
X Resolution = 800
Y Resolution = 600
Display Format = 5152
Refresh = 60
Changing Display Format = 4120
gf_layer_attach() SUCCESS
Layer is already in use
Creating Layer Surface SUCCESS
Context Surface Create SUCCESS
Code is not continued from here.