Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about the code #2

Open
JadTawil-theonly opened this issue Feb 19, 2020 · 1 comment
Open

Questions about the code #2

JadTawil-theonly opened this issue Feb 19, 2020 · 1 comment

Comments

@JadTawil-theonly
Copy link

I have a few questions about the code.

I will ask one:
In PlatformIndependence.h:

#define THREADPTR(x) thread x
#define DEVICEPTR(x) device x
#define THREADGRPPTR(x) threadgroup x
#define CONSTPTR(x) constant x

Can you explain what 'thread', 'device', 'threadgroup', and 'constant' are in terms of programming? I guess i am not sure what they mean to a c++ compiler.

@JadTawil-theonly
Copy link
Author

Would you mind explaining the settings:

mSettings.mImageSize.x = width;
mSettings.mImageSize.y = height;
mSettings.mNumSegments = numSegments;
mSettings.mSpixelSize = spixelSize;
mSettings.mCohWeight = 0.6f;
mSettings.mNumIteration = 5;
mSettings.mColorSpace = RGB;
mSettings.mSegmentationMethod = GIVEN_NUM;
mSettings.mForceConnectivity = true;
mSettings.mSegColors = new int[mSettings.mNumSegments];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant