Reputation
18,766
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 44 87
Newest
 Enlightened
Impact
~194k people reached

Dec
2
revised Repeatedly applying a function
added 657 characters in body
Dec
2
answered Repeatedly applying a function
Dec
2
revised How to solve Quadratic Program in vector form?
added 177 characters in body
Dec
2
answered How to solve Quadratic Program in vector form?
Nov
27
revised How to extract a region shape from an 2 colour image?
typo
Nov
27
answered How to extract a region shape from an 2 colour image?
Nov
26
comment Finding pixel coordinates from morphological components
Except that those aren't coordinates, they're array indices. Indices start at the top-left corner, which is 1/1, and the first index is the row (y-direction). Coordinates start at the bottom-left corner, which is 0/0, and the first coordinate is the x-direction. If you need coordinates, and you don't want to do the error-prone conversion yourself, the easiest way is probably PixelValuePositions[Image[#], 1]& - might be slower, though.
Nov
11
comment How to extract “this text” between specific characters: 1) this text 1)
@NicolasJosephScozzaro: There are great websites like regex101, where you can test regular expressions online. If you plan to do a lot of text processing, do yourself a favor and google for tutorials about regular expressions. They're not hard to use, and make text processing so much easier...
Nov
10
comment How to simplify writing LibraryLink code?
Ah, I see now. I've looked in the reference page for LibraryFunctionLoad, but memory management options weren't mentioned there. I've used LTemplate to access "libSVM" for machine learning (more options and faster than Classify), and it worked perfectly! Thank you very much for this.
Nov
10
comment How to simplify writing LibraryLink code?
Wow, this is really, really great! Question: In LFun["compute", {{Real, _, "Constant"}}, "Void"],, what does "Constant" mean?
Oct
28
comment Computing a mean of median list of points
@N.J.Evans: It's consistent with most of the other statistical functions like Mean or Variance, which all treat a 2d array as a list of multivariate data samples. And if you're working with multivariate data, that is very useful.
Oct
17
answered Does LinearSolve know that I gave it a Sparse lower triangular matrix?
Oct
10
revised Image transformation to break up connected components
deleted 1 character in body
Oct
10
answered Image transformation to break up connected components
Oct
8
revised How to implement Bresenham’s algorithm as a system of equations?
added 498 characters in body
Oct
8
comment How to implement Bresenham’s algorithm as a system of equations?
That's because Round rounds .5 towards the nearest even integer. You can use e.g. rnd = Ceiling[# - .5] &;. That gives a symmetric result, but it will still sometimes round different than bresenham, since the calculation is done in machine precision.
Oct
8
answered How to implement Bresenham’s algorithm as a system of equations?
Oct
7
comment How to implement Bresenham’s algorithm as a system of equations?
Is there a reason you want to use the Bresenham algorithm? Wouldn't it be much simpler and more efficient to use floating point arithmetic? I mean, the Bresenham algorithm was useful when floating point operations were expensive and it payed to replace them with several integer instructions. On today's hardware, and in an interpreted language, that is almost certainly not the case anymore. Are you targeting a Raspberry Pi? (+1 for nostalgia, though)
Oct
3
comment PixelValues along a straight Line
What do you mean by "according to their distances"? If you mean "equidistant", then I don't see how that's possible without interpolation, unless the line has 0°, 90° or 45° angle. To prevent further confusion, could you add code to your answer, that calculates the X/Y coordinates you want to sample? (even if it's inefficient)
Oct
3
comment PixelValues along a straight Line
@AlexeyPopkov: I don't think this is a result of interpolation. I tried ImageTransformation on an image containing random integer values, and the result contained only integers, too. If it used interpolation, I'd have seen some rational numbers. My guess is it's just rounding differently than PixelValue