- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Instead of filtering profiles i'd like to know how to create a streamprofile from inline code using C#
To create some function alike //todo or create a ProfileBuilder function.
public new StreamProfile CreateProfile(....various arguments to set various parameters)
{
StreamProfile sp = new StreamProfile();
return sp;
}
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would recommend checking the documentation sources below.
Inline profile functions
https://unanancyowen.github.io/librealsense2_apireference/classrs2_1_1pipeline__profile.html Intel® RealSense™ Cross Platform API: rs2::pipeline_profile Class Reference
Inline stream functions
https://unanancyowen.github.io/librealsense2_apireference/classrs2_1_1config.html Intel® RealSense™ Cross Platform API: rs2::config Class Reference
The Resolve() instruction at the very bottom of this page looks promising in terms of filtering profiles, as it resolve the configuration filters to find a matching device and streams profiles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not exactly getting it, i just like to say (in psuedo code):
streamprofile sp = new streamprofile
(
this.width =480;
this.height =600;
this.Depthmode=true;
this.LedPatternEnbled=false
etc.
)
Not based on a filter of existing profiles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you explain some more please about what you are trying to achieve? Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Currently the way to create a stream profile goes like this
streamProfile = depthSensor.VideoStreamProfiles
.Where(p => p.Stream == Stream.Depth)
.OrderByDescending(p => p.Framerate)
.Where(p => p.Width == width && p.Height == height)
.First();
I rather just Create a new stream profile and use it on the fly.
Instead of choosing based upon linq statements.
I assume their just some object properties to be set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will refer the question to stream programming expert jb455 to see if JB can contribute any ideas about it, since stream profiles is a subject that is not covered by my knowledge.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page