|
@@ -327,13 +327,7 @@ class Panorama extends THREE.EventDispatcher{
|
|
this[type+'Tex'] = texture
|
|
this[type+'Tex'] = texture
|
|
if(getRangeFun){
|
|
if(getRangeFun){
|
|
if(type == 'ir'){
|
|
if(type == 'ir'){
|
|
- /* let p = [range.minPixel_, range.maxPixel_].map(index=>{
|
|
|
|
- let row = Math.floor(index / texture.image.width)
|
|
|
|
- let col = index % texture.image.width
|
|
|
|
- return {x:col,y:row}
|
|
|
|
- })
|
|
|
|
- range.minPixel = p[0]
|
|
|
|
- range.maxPixel = p[1] */
|
|
|
|
|
|
+
|
|
let pixelCount = texture.image.width * texture.image.height
|
|
let pixelCount = texture.image.width * texture.image.height
|
|
const stopMemberCount = 50;
|
|
const stopMemberCount = 50;
|
|
|
|
|
|
@@ -368,7 +362,7 @@ class Panorama extends THREE.EventDispatcher{
|
|
})
|
|
})
|
|
groups2.sort((b,a)=>{return a.score - b.score})
|
|
groups2.sort((b,a)=>{return a.score - b.score})
|
|
range[name+'Pixel'] = groups2[0]?.center
|
|
range[name+'Pixel'] = groups2[0]?.center
|
|
- //console.log('groups2', this.id, name,groups2)
|
|
|
|
|
|
+ console.log('groups2', this.id, name,groups2)
|
|
})
|
|
})
|
|
|
|
|
|
}
|
|
}
|