librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

A problem of Filter and Align

Open HungLearner opened this issue 8 years ago • 4 comments

Required Info  
Camera Model D415
Operating System & Version Windows 10
Platform PC
SDK Version SDK 2.0 (Build 2.10.1)

When I use Align to process original frameset, and use that output in Colorize. It will crash such as "AccessViolationException".

I'm also try create new space to copy the data, but it still have a problem.

I think the Filter and Align can't use in the same time.

How can I fix this problem?

This is my code: var frames = pipeline.WaitForFrames(); Align Alg = new Align(Stream.Color); var Alg_frame = Alg.Process(frames); SpatialFilter filter = new SpatialFilter(); filter.Options[Option.HolesFill].Value = 3.0f; var filtered_depth = filter.ApplyFilter(Alg_frame.DepthFrame); var colorized_depth = colorizer.Colorize(filtered_depth);

HungLearner avatar Mar 22 '18 15:03 HungLearner

Does anybody known this problem?

HungLearner avatar Mar 25 '18 17:03 HungLearner

Hi @HungLearner Sorry for the delay. We reproduced the problem with v2.10.1, and the bug should be fixed now in v2.10.2 (I believe by #1278) Could you please check that the output is what you wanted?

dorodnic avatar Mar 26 '18 12:03 dorodnic

It's work! Thank you very much!

HungLearner avatar Mar 26 '18 12:03 HungLearner

Great! Feel free to open more issues, I am aware that the combinations of filters and alignment is something we struggled to get right, but hopefully now it should work.

dorodnic avatar Mar 26 '18 13:03 dorodnic