librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Decopuple the logic to process frames outside the UI.

Open eebanos opened this issue 7 years ago • 5 comments

Required Info
Camera Model { SR300 }
Firmware Version (3.21.0.0)
Operating System & Version {Win (10)
Platform PC
SDK Version { 2.16.3.0 }
Language {C# }
Segment {others }

Issue Description

Following the example, specifically this one: cs-tutorial-3-processing I'm trying to decouple the logic to be able to display the frame result from a WPF Page, through a property defined inside a controller class implementing the INotifyPropertyChanged interface. The main issue is how do I access a the ColorFrame and display it without using the Dispatcher.Invoke approach.

eebanos avatar Dec 13 '18 12:12 eebanos

[Realsense Customer Engineering Team Comment] Hi eebanos,

I am not so familiar with C#, but would like to give it a try... If I understand correctly, and then take into a more generic way on separating GUI from inside business logic. If this is the case, (with some searching on the internet), you may want to take a look into MVC pattern's variation MVVM Pattern

Thank you!

The MVVM pattern is the one I'm using, solved in combination with the async/await using sequencial tasks for post-processing the frames.

eebanos avatar Jan 10 '19 10:01 eebanos

[Realsense Customer Engineering Team Comment] Hi eebanos,

Wonder if you get update and still need help on this one? If not, this will be closed soon.

Thanks!

Already solved and closed, thanks.

eebanos avatar Jan 16 '19 17:01 eebanos

Thanks for the update, and glad to know that you solved it with MVVM.

BTW, there was some issue with our system and some of the messages were not updated timely in our end.

Thanks!