Ask Your Question

Revision history [back]

Okey I understand, thank you:) I have to use nested 4 *for loops and my code part;

for(int i =lowpoint;i<(highpoint-1);i++) {

for(int j = i+1;i<highpoint;j++) {<="" p="">

for(int k = offpoint;k<highpoint;k++) {<="" p="">

   result1=function1(i,j,image);
   result2=function2(image1,image2,integernumber);

   for(int m=impoint;m<highpoint;m++){
      result2=function3(image, ver-size,hor_size,,result1[0],result1[1],m);
      result3=function4(result2,duoblenumber);
      sum = sum+result3[m];
      }
   }
   sum=sum/doublenumber2;
 }

}

all functions include operations related to the pixel values of the images except function2.

pixel values operations, for example;

public Mat [] Function(Mat[] imagearray, int ver_size, int hor_size, double doublenumber, int lowpoint, int highpoint, int offset_point){ public static double[] colorspace1; public static double[] colorspace2; public static double[] colorspace3; float [] colorspace_u=new float[1]; for(int i=0;i<ver_size;i++){ for="" (int="" j="0;j&lt;hor_size;j++){" colorspace1="imagearray[high_temp_point].get(i,j);" colorspace2="imagearray[low_temp__point].get(i,j);" colorspace_u[0]="division/(float)(colorspace2[highpoint]-colorspace1[lowpoint]);" if="" (colorspace_u[0]&gt;5){="" colorspace_u[0]="5;" }="" else="" if(colorspace_u[0]&lt;0.2){="" colorspace_u[0]="(float)0.2;" }="" image3.put(i,j,colorspace_u[0]);="" colorspace3="imagearray[offset_point].get(i,j);" colorspace_u[0]="doublenumber-(float)(colorspace3[0]*(double)colorspace_u[0]);" image4.put(i,j,(float)colorspace_u[0]);="" }="" }="" result[0]="image3;" result[1]="image4;" return="" result;="" }<="" strong="">

//So other function's calculate like this.

Okey I understand, thank you:) I have to use nested 4 *for loops and my code part;

for(int i =lowpoint;i<(highpoint-1);i++)
{

{ for(int j = i+1;i<highpoint;j++) {<="" p="">

i+1;i<highpoint;j++) { for(int k = offpoint;k<highpoint;k++) {<="" p="">

offpoint;k<highpoint;k++)
{
 result1=function1(i,j,image);
 result2=function2(image1,image2,integernumber);
  for(int m=impoint;m<highpoint;m++){
 result2=function3(image, ver-size,hor_size,,result1[0],result1[1],m);
 result3=function4(result2,duoblenumber);
  sum = sum+result3[m];
}
}
 }
}
 sum=sum/doublenumber2;
 }
}

}

all functions include operations related to the pixel values of the images except function2.

pixel values operations, for example;

public

**public  Mat [] Function(Mat[] imagearray, int ver_size, int hor_size, double doublenumber, int lowpoint, int highpoint, int offset_point){
public static double[] colorspace1;
public static double[] colorspace2;
public static double[] colorspace3;
float [] colorspace_u=new float[1];
for(int i=0;i<ver_size;i++){ for="" (int="" j="0;j&lt;hor_size;j++){" colorspace1="imagearray[high_temp_point].get(i,j);" colorspace2="imagearray[low_temp__point].get(i,j);" colorspace_u[0]="division/(float)(colorspace2[highpoint]-colorspace1[lowpoint]);" if="" (colorspace_u[0]&gt;5){="" colorspace_u[0]="5;" }="" else="" if(colorspace_u[0]&lt;0.2){="" colorspace_u[0]="(float)0.2;" }="" image3.put(i,j,colorspace_u[0]);="" colorspace3="imagearray[offset_point].get(i,j);" colorspace_u[0]="doublenumber-(float)(colorspace3[0]*(double)colorspace_u[0]);" image4.put(i,j,(float)colorspace_u[0]);="" }="" }="" result[0]="image3;" result[1]="image4;" return="" result;="" }<="" strong="">

i=0;i<ver_size;i++){ for (int j=0;j<hor_size;j++){ colorspace1=imagearray[high_temp_point].get(i,j); colorspace2=imagearray[low_temp__point].get(i,j); colorspace_u[0]=division/(float)(colorspace2[highpoint]-colorspace1[lowpoint]); if (colorspace_u[0]>5){ colorspace_u[0]=5; } else if(colorspace_u[0]<0.2){ colorspace_u[0]=(float)0.2; } image3.put(i,j,colorspace_u[0]); colorspace3=imagearray[offset_point].get(i,j); colorspace_u[0]=doublenumber-(float)(colorspace3[0]*(double)colorspace_u[0]); image4.put(i,j,(float)colorspace_u[0]); } } result[0]=image3; result[1]=image4; return result; }**

//So other function's calculate like this.