Rasterize tool, corner line bug

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Rasterize tool, corner line bug

Post by PablerasBCN »

Hello,

I think there is a bug in the reasterize tool, when you rasterize RGB or Heights only to Geotiff, I find in the right and the upper corners, one pizel line width glitchy line is output. With intermitent black dots.

Image

Image

Image

This is with latest beta, but with latest stable version I noticed this too.
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Rasterize tool, corner line bug

Post by daniel »

Interesting. And is it visible in the raster as well? (when exporting it as a point cloud for instance). Or is it really only in the geotiff export?
Daniel, CloudCompare admin
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Re: Rasterize tool, corner line bug

Post by PablerasBCN »

Hello, I checked by exporting to cloud

both RGB and Heights, the issue persists:

RGB (green background so balck dots are mor visible)
Image

Heights, all the red corner, also noticed that singel red pixel in bottom left.
Image

This is the cloud I used in this particular test to generate the screenshots:
https://mega.nz/file/sg8mRS7S#tXyxrVkNj ... dsxhHIOjXc
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Re: Rasterize tool, corner line bug

Post by PablerasBCN »

So I tested a bit further and I believe this issue is related to using "interpolate" I'll test more tomorrow and post with the definitive info
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Re: Rasterize tool, corner line bug

Post by PablerasBCN »

Hello,

So I took some time to test further,

After separating the ground of the already classified cloud.

I go to the raster tool, if I interpolate on the ritght and top corner last pixel row/colum won´t interpolate correctly.

I suspect that what happens is that interpolates taking the new upper and near right pixels of each pixels and fo the most corner pixels in top and right there is nothing to interpolate to and applies 0 value. Or something simialr. Also in some clouds, to bottom left, first pixels ocasionally fails in a similar fashion.

Furthermore, I was doing a video to ilustrate, and seems like on first attemp the tool does the job properly, to my surprise, for in the following attemps the tool fail as spected.


Image

Image

Image

Image

Image

Image


HEre the video:
https://youtu.be/LXubL5BP_T8

The point cloud in the video
https://mega.nz/file/coNhAKxD#XorHShG4G ... BMmzjKf_t8
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Rasterize tool, corner line bug

Post by daniel »

Thanks for the extensive tests and data.

I reproduced the issue. And I don't clearly understand why it happens, but I guess it's some limit cases, where numbers fall on the wrong side of the boundary. I added additional tests to save these limit cases, and I believe it should solve this issue.

I've updated the 2.12.alpha version online (for Windows). I'll let you test.
Daniel, CloudCompare admin
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Re: Rasterize tool, corner line bug

Post by PablerasBCN »

Hello,

Thank you very much for the new beta,

sadly I belive issues have become worse, while now on corners seems to not add the issue, now the issue is all over the raster XD

Plus non interpolated values seem also affected:

Image

Image

Image

this is the exact blue cloud shown in the images in case you whant to test:
https://mega.nz/file/1pVg3D5I#uwSEwD6ZX ... EpNAluwzAo
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Re: Rasterize tool, corner line bug

Post by PablerasBCN »

for comparison, this is on non beta version:
Image
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Rasterize tool, corner line bug

Post by daniel »

Ah yes, good catch. I added a safety test while changing the code, but it seems that this test made things worse... I commented it and updated the latest 2.12.alpha version.

Thanks for the test!
Daniel, CloudCompare admin
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Re: Rasterize tool, corner line bug

Post by PablerasBCN »

The oddities seem gone from the Beta, yet the output is the same as it was before, the top and right borders glitch aswell as first bottom left pixel. In this particlar tile there is issue on the bottom right, but that is a bit of a corner case that may be could be ignored

Image
Post Reply