i want show 2, 3 or more images in same window. my problem how put second, third image on right side (above, left or upper) main image. i want create this, using opencv. --------------- | | | | | | --------------- | | | | | | --------------- thanks in advance jorge you can find answer on opencv wiki: http://code.opencv.org/projects/opencv/wiki/displaymanyimages :-)
something along lines: builder.registertype<mytype>().as<itype>(); builder.registertype<mytype2>().as<itype>(); builder.deregistertype<mytype>().as<itype>() var container = builder.build(); var types = container.resolve<ienumerable<itype>>(); assert.istrue(types.count == 1); assert.istrue(types[0].gettype == typeof(mytype2)); scenario: go through bunch of assemblies , go register types want make sure have 1 implementation of given type. need before create container. track on own nice if autofac me bit. this cannot done directly using containerbuilder , unless start on new one. mind you, having first built container should able construct new container filtering away unwanted types , reusing registrations first container. this: ... var container = builder.build(); builder = new containerbuilder(); var components = container.componentregistry.registrations .where(cr => cr.activator.limittype != typ...
i have not issue during query using 2 criterials id , other. use repository storing data id,iso,value. have created index("_id","iso") performs queries queries returning cursor if use 1 criterial _id, returning nothing if use 2 (_id, iso) (commented code). index affecting response or query method failing? use :v1.6.5 , c# official. sample. //getting data public list<bsonobject> get_object(string id, string iso) { using (var helper = bsonhelper.create()) { //helper.db.repository.ensureindex("_id","iso"); var query = query.eq("_id", id); //if (!string.isnullorempty(iso)) // query = query.and(query, query.eq("iso", iso)); var cursor = helper.db.repository.findas<bsonobject>(query); return cursor.tolist(); } } data: { "_id": "2345019", "iso": "uk", "data": "some data...
Comments
Post a Comment