Rasterize tool, corner line bug

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Rasterize tool, corner line bug

Post by daniel »

Your last capture is with version 2.11.3?

On my side, here's what I have:
Capture.JPG
Capture.JPG (33.69 KiB) Viewed 5172 times
Daniel, CloudCompare admin
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Re: Rasterize tool, corner line bug

Post by PablerasBCN »

wow

I'll retry again. But I did even post with the version up left just because I feared the question XD.

But may be I installed the installer and did not use the loose files and may be there is a difference between theese. I'll uninstall and reinstall and test and if I don´t get your ressults I'll install the loose files version.
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Re: Rasterize tool, corner line bug

Post by PablerasBCN »

Hi, I installed this time from the zipped beta and I was able to replicate your ressults, certainly feel better!!

There are still on corners some non interpolated areas

Image

Not sure if this is specific to this tile , I'll do some test with other tiles and see what happns.
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Rasterize tool, corner line bug

Post by daniel »

On the corners, we are missing data to interpolate. The best we can do is inside the convex hull of the raster.
Daniel, CloudCompare admin
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Re: Rasterize tool, corner line bug

Post by PablerasBCN »

I understand but I think it would better in case there is not enough data, to set problematic pixels to closest known value instead of leaving them "red" like in this heighmap

Image

Image
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Re: Rasterize tool, corner line bug

Post by PablerasBCN »

Hello again,

I'm bringing this up from the Abyss because as in last post was described, the issue was reduced but not completely fixed. The smaller the step the more of non interpolated cells show up, but even going up crazy in step size the issue will remain in the corners.

I've been thinking of thi issue and the proposal would be to add a "force empty cell interpolation" checkbox with a paramter named "loop attemps" where 0 is infinite,

This option will create an array of the empty cells left after interpolate. In a loop, each cell could look the neighbouring cells data, if empty in all 4 sides, move next. If any of the corners has data, use the average of the corners with data to fill cell with data, or even, use the first corner with data and continue the loop.

Once first loop is done the number of empty cells will be less forcibly so, repeat the process untill the number of empty cells is 0 or untill the "loop attemps" is reached.

It is important that no cells are left with default value because if you mesh using heigh later on the mesh will have an enormous dip or an super spike.
jfosh
Posts: 3
Joined: Mon Feb 21, 2022 12:53 pm

Re: Rasterize tool, corner line bug

Post by jfosh »

I'd like to bring this up again as well. Getting a similar issue and it would be great if someone knew a workaround.
alfred0809
Posts: 2
Joined: Thu Jun 30, 2022 1:54 pm

Re: Rasterize tool, corner line bug

Post by alfred0809 »

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.
alfred0809
Posts: 2
Joined: Thu Jun 30, 2022 1:54 pm

Re: Rasterize tool, corner line bug

Post by alfred0809 »

Is there a way to make pixels look like lines?
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Rasterize tool, corner line bug

Post by daniel »

What happens above (normally) is that where CC cannot interpolate, it uses the 'empty cell' value.
Daniel, CloudCompare admin
Post Reply