Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save maheshmc2/833558 to your computer and use it in GitHub Desktop.
Save maheshmc2/833558 to your computer and use it in GitHub Desktop.
This is test case generated...
val(:,:,1) =
Columns 1 through 8
0.8428 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
Columns 9 through 11
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
val(:,:,2) =
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
val(:,:,3) =
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
val(:,:,4) =
1.0e-005 *
Columns 1 through 8
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0.5325
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
Columns 9 through 11
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0.5325 0.5325
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
val(:,:,5) =
1.0e-003 *
Columns 1 through 8
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0.1038 0.2024
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
Columns 9 through 11
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0.2982 0.2796 0.4527
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
val(:,:,6) =
Columns 1 through 8
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0.0000 0.0000 0.0003 0.0004
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
Columns 9 through 11
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0.0008 0.0026 0.1507
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
val(:,:,7) =
1.0e-003 *
Columns 1 through 8
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0.0053 0.0186 0.0133 0.0586
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
Columns 9 through 11
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0.1118 0.4953 0.1811
0 0 0
0 0 0
0 0 0
0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 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
run:
Color Field names is: Columns 1 through 4
'color' 'shape_Centroid' 'shape_Area' 'shape_Eccentricity'
Columns 5 through 8
'shape_Perimeter' 'shape_x' 'shape_xnorm' 'texture'
Struct is: color: {}
shape_Centroid: {}
shape_Area: {}
shape_Eccentricity: {}
shape_Perimeter: {}
shape_x: {}
shape_xnorm: {}
texture: {}
Object no are: 1
Shape_x length is: 2683
0.8428355371416704 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0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 0.0 0.0 5.325352405195414E-6 2.0236339139742573E-4 3.9673875418705834E-4 5.8578876457149553E-5 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 2.982197346909432E-4 7.562000415377488E-4 1.1183240050910369E-4 5.325352405195414E-6 0.0 0.0 0.0
0.0 0.0 0.0 5.325352405195414E-6 2.7958100127275923E-4 0.002625398735761339 4.952577736831734E-4 0.0 0.0 0.0 0.0
0.0 0.0 0.0 5.325352405195414E-6 4.526549544416102E-4 0.15068084630500422 1.8106198177664408E-4 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0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.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
Value is: 0.8428355371416704
BUILD SUCCESSFUL (total time: 34 seconds)
package felisinterfacing;
//import dataTypesComp.*;
import IFV_2.*;
import com.mathworks.toolbox.javabuilder.*;
//import java.util.List;
public class Test1 {
private static MWCellArray color_field_names;
private static MWStructArray struct;
private static Object[] o;
private static FeatureVector f;
//private static dataTypesClass dTypes;
public static void main(String... args){
try{
// dTypes = new dataTypesClass();
f = new FeatureVector();
color_field_names = new MWCellArray(1,8);
//color', {}, 'shape_Centroid', {}, 'shape_Area', {}, 'shape_Eccentricity', {}, 'shape_Perimeter',{}, 'shape_x', {}, 'shape_xnorm',{}, 'texture', {});
color_field_names.set(new int[]{1,1}, "color");
color_field_names.set(new int[]{1,2}, "shape_Centroid");
color_field_names.set(new int[]{1,3}, "shape_Area");
color_field_names.set(new int[]{1,4}, "shape_Eccentricity");
color_field_names.set(new int[]{1,5}, "shape_Perimeter");
color_field_names.set(new int[]{1,6}, "shape_x");
color_field_names.set(new int[]{1,7}, "shape_xnorm");
color_field_names.set(new int[]{1,8}, "texture");
o = f.createEmptyStruct(1, color_field_names);
// o = dTypes.createEmptyStruct(1, color_field_names);
struct = (MWStructArray)o[0];
// System.out.println("dTypes is: "+dTypes);
// System.out.println("dTypes is: "+f);
System.out.println("Color Field names is: "+color_field_names);
// System.out.println("Objects Array is: "+o);
System.out.println("Struct is: "+struct);
o = f.updateField(1, "I:\\Mahesh\\Programs\\Matlab\\Image Collection\\Segmented\\Sample4.jpg");
// o = dTypes.updateField(1,struct,color_field_names);
System.out.println("Object no are: "+o.length);
for(int i=0 ; i<o.length ; ++i){
MWCellArray x = (MWCellArray)o[i];
MWStructArray ent1 = (MWStructArray)x.getCell(1);
//double col = (double)ent1.getField("color", 1).toString();
//Object
// MWCellArray col_arr = (MWCellArray) ent1.get("color", 1);
//Object ob = ent1.get("Centroid", 1);
//System.out.println(ob.getClass());
MWArray shape_x = ent1.getField("shape_x", 1);
System.out.println("Shape_x length is: "+shape_x.numberOfElements());
double[] shape_x_arr = new double[shape_x.numberOfElements()]; // WORKING
for (int j=1 ; j<=shape_x.numberOfElements() ; ++j){
shape_x_arr[j-1] = Double.parseDouble(shape_x.get(j).toString());
}
/*for(int j=0 ; j<shape_x.numberOfElements() ; ++j){
System.out.println(shape_x_arr[j]);
}*/
//..MWArray cent = ent1.getField("shape_Centroid", 1);
MWArray col_1 = ent1.getField("color", 1);
double[][][] tr_arr = new double[12][12][12];
for(int j=1 ; j<=11 ; ++j){
for(int k=1 ; k<= 11 ; ++k){
for(int l = 1 ; l<=11 ; ++l){
tr_arr[l][k][j] = Double.parseDouble(col_1.get(l+(k-1)*11+(j-1)*121).toString());
//System.out.print(tr_arr[l][k][j]+" ");
}
//System.out.println();
}
//System.out.println();
}
/* for(int j=1 ; j<=11 ; ++j){
for(int k=1 ; k<= 11 ; ++k){
for(int l = 1 ; l<=11 ; ++l){
System.out.print(tr_arr[j][k][l]+" ");
}
System.out.println();}
System.out.println();}*/
// System.out.println("Size of color Matrix is: "+col_1.numberOfElements());
/* for(int j=1 ; j<=col_1.numberOfElements() ; ++j){
System.out.print(col_1.get(j)+" ");
}*/
Double col_2 = (Double)col_1.get(1);
System.out.println("Value is: "+col_2);
// System.out.println("Cent_x is: "+cent.get(1)+"Cent_y is: "+cent.get(2));
// System.out.println("ent1 is: "+ent1);
/* String s = ent1.get("shape_Centroid", 1).toString();
double area = Double.parseDouble(ent1.getField("shape_Area", 1).toString()); // Working
double ecc = Double.parseDouble(ent1.getField("shape_Eccentricity", 1).toString()); // Working
*/ //MWArray
// System.out.println("size of centr is: "+centr.toArray().length);
// System.out.println("1 is: "+centr.get(1)+" 2 is: "+centr.get(2));
/*List<MWArray> list = col_arr.asList();
for(int j=0; j<list.size() ; ++j){
System.out.println(list.get(j));
}*/
//System.out.println("Color is: "+col_arr.asList())
//shape_Eccentricity
//System.out.println("Area 1 is:"+ent1.getField("shape_Area", 1));
//.. getField("shape_Area", 1)
/* MWArray entry1 = (MWArray)x.getCell(1);
MWArray entry2 = x.getCell(2);
*/
// String s1 = entry1.
//MWArray s = (MWArray)entry1.getCell(5);
//System.out.println("entry1 is: \n"+entry1);
//System.out.println("entry2 is: \n"+entry2);
// System.out.println("entry1 cell 5 is: \n"+s);
//System.out.println("Area 1 is: "+f1.get(1).toString());
}
//System.out.println("F is: "+f);
}catch(Exception e){
e.printStackTrace();
}
finally{
// dataTypesClass.disposeAllInstances();
FeatureVector.disposeAllInstances();
MWCellArray.disposeArray(color_field_names);
MWStructArray.disposeArray(struct);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment