« first day (222 days earlier)      last day (4263 days later) » 

12:41 AM
@Verde
 
rojo ...
 
:)
Hey
 
What's up?
 
I just found that I'm having a high heart rate lately...
Perhaps the stress, the coca cola abuse
ehhmm
Anyway
I have to do something about image processing
 
porn or boring?
 
12:43 AM
The teacher is quite free spirited as to what, but
I'm assuming it has to be boring
 
hmmm ... nastier is happier
tell me more
 
Ok. Image processing subject, ingeneering university, UBA, final work. The guy that gives the practical classes, who's in charge of this work, is quite, errr
So
it's more about searching for a paper, reproducing it, and giving him whatever so that he has an excuse to make me pass
 
give me an example of the topics covered
 
Compression, jpeg, using clustering, border detection, getting Lena naked
 
i feel inclined to the last one
fourier image compression could do
 
12:51 AM
Yeah, I guess...
 
@Rojo reference.wolfram.com/mathematica/ref/FourierDCT.html
first example
under applications
 
Yeah, neat, hadn't seen that
The tp on jpeg compression
was something like that
 
let me think another one
 
We did everything grayscale
 
text river detection?
 
12:56 AM
so anything color related is something I didn't do, hence, potentially interesting
Text river detection, I saw a question on that somewhere
 
yeah i answered there
 
R.M
51
Q: "River" detection in text

Lev BishopOver on the TeX stackexchange, we have been discussing how to detect "rivers" in paragraphs in this question. In this context, rivers are bands of white space that result from accidental alignment of interword spaces in the text. Since this can be quite distracting to a reader bad rivers are co...

 
Was it here or in dsp?
There
 
R.M
Good info from Matthias... I hadn't seen it before
 
I find that definately fun
I think it's likely that I can convince him as long as I can find some paper on that
 
1:00 AM
@Rojo there are a lot
 
R.M
does anyone know how I can stop the CDF player from using my Mathematica kernel?
 
Googlescholaring...
 
R.M
I mean, it is supposed to run for people who don't have mathematica... so why is it using one of mine just because I have it?
 
@R.M kill kernel
 
Unplug computer
 
1:02 AM
UnPlug["Computer"]
or SetProperty["Computer","Unplugged"]
 
There's also
x=0;Dynamic[++x]
and leave it visible
Sorry
{Dynamic[x,DynamicEvaluationTimeout->Infinity], x:=While[True,++x]}
 
R.M
@Verde SetAttributes is probably semantically correct
 
@R.M we could discuss that for eons
 
R.M
Let's start now
 
Ok. Moron mode on
 
R.M
1:15 AM
That awkward moment when two morons cannot think of something moronic enough for their opening statements...
 
Talking about morrón, the salad I ordered just arrived
 
@R.M I can't insult toads. I fear they can become extinct
@Rojo ping
@Rojo This algo is fabulous dtic.upf.edu/~mbertalmio/final-cvpr.pdf and is implemented in Mma
8
A: How to implement a similar of photoshop's "patch tool" function?

VerdeAs you already have the barcode position, you could generate a mask automagically and perform a Navier-Stokes Image Restoration. Example in Mathematica:

@Rojo You shouldn't allow a salad to control your lifestyle. It's just dirty grass. Go for beer: noble cereals. The whole story of mankind is told in each glass of beer
 
1:43 AM
@Verde I went for salad this time
because I had some facturas about 2 hours ago
and still have a big piece of cake for desert
but
I already dropped the salad and am having 1 1/2 sorrentinos
 
that sounds almost human
 
Let's look at your link
 
take a look at my answer I linked above ... and then the paper
that is enough for a boring-no-porn final assignment
 
@Verde Haha
I'm guessing it won't be enough to use such a high level function
 
@Rojo nono ... of course. But the algo shoudn't be THAT difficult ... and the results are impressive !
 
1:49 AM
@Verde Definately
and
perhaps TraceInternal->True can do some of the work
 
you could fake some nice pictures
:)
 
I'm 80% certain I'm going with that
Thanks!
 
$10
 
Ok, I'll send them by cab
 
nice from you.
 
1:52 AM
The cab will go until the trip price hits 10$
a block and a half
 
OK. My pleasure goes with your spending
 
2:08 AM
:)
 
 
2 hours later…
4:03 AM
I am fed up of this problem
1
Q: How to deal with "NDSolve::mxst:" problem when using "NDsolve"?

SunnySkyI have tried to use NDSolve for solving a system of second-order ordinary differential equations by giving some boundary conditions. I set the parameters of NDSolve as follows: sol = NDSolve[{eq1,eq2,q1[0] == 0, q2[0] == Sqrt[2], q1'[0] == 0, q2'[0] == -2}, {q1, q2}, {t, 0, 0.5}, MaxSteps -&g...

I lost the count of questions he posted about it
Counting is easy. All his questions are related to this one: six in total. Enough!
 
 
4 hours later…
8:11 AM
@Rojo JPEG has a default quantization table that isn't really mandatory. You could make an interactive mma app playing with the quantization components and show how it works out on various types of images. It would also be interesting to optimize the q table automatically based on the image content.
 
 
3 hours later…
11:34 AM
@SjoerdC.deVries ping
 
@Verde pong
 
@SjoerdC.deVries Re image compression
 
in color
to export:
`i1 = Image[
Partition[
Partition[
PadLeft[#, 300 IntegerPart[Length@#/300] + 300, 0] &@
ToCharacterCode@Compress@ExportString[NotebookGet@nb, "NB"], 3],
100]/256]`
To import
`NotebookPut@
ImportString[
Uncompress@(FromCharacterCode@
Reverse@TakeWhile[
Reverse@IntegerPart@Flatten[(ImageData[i1] 256)], # != 0 &]),
"NB"]`
 
looks a bit like my notebook gif. Is that what you're doing here?
 
11:37 AM
almost the same, just colorful
using 8 bits per pixel
channel
 
More than threefold the data density. Unfortunately, nobody seems to think this is the way to go ;-(
How do you handle EOF?
 
@SjoerdC.deVries Well I think it is better than pastebin or similars
@SjoerdC.deVries hehe that was the biggest problem!
 
I wrote the length in the first two characters, but you don't
 
I started with that
but then I had a better idea
 
11:40 AM
I padded with 0 at the beggining
yep
the code is more terse
 
smart. The encoded string is sure not to start with 0. It may have it in the middle
 
at first I padded the end, as the code is better. But if there is a 0 in the middle it goes astray
 
Not sure what SE does with one-dimensional lines. That could save some troubles.
GIF allows 1D bitmaps
It would look like a separator, a hairline
 
I planned to make it square for aesthetic purposes
we can make a pentagon ;)
 
11:55 AM
mmm.. pity there is no DropWhile
 
I added the 1 dimensional GIF. This is without your color optimization. It becomes invisible (should be below the speckled bar)! Get it with this:
NotebookPut@ImportString[
Uncompress[
StringJoin @@ (FromCharacterCode@
Flatten[ImageData[Import["http://i.stack.imgur.com/1j8yL.gif"],
"Byte"][[All, All, 1]]])], "NB"];
 
Nice!
 
This would make it very unobtrusive.
 
and obscure :)
 
Just publish the link in the Q or A and your set
 
12:02 PM
yes, in fact the gif doesn't need to be included in the post
 
You have to put it somewhere
 
nop
imgurl is enough
 
Export code:
It has to be safe. No expiration, poster should be able to delete it etc.
comCell =
ToCharacterCode@
Compress[
Import["C:\\Users\\Sjoerd\\Documents\\Privé\\Optop\\Sun \
functions.nb", "Text" ]];

encodedCodeImage = Image[{comCell}, "Byte"];

Export["C:\\Users\\Sjoerd\\Desktop\\test.gif", encodedCodeImage,
"DitheringMethod" -> None]
 
experiation?
ahh expiration
 
I'm not sure that unreferenced images will be stored forever
code above: {comCell} for 1D image. "DitheringMethod" -> None also very important
 
12:05 PM
They are referenced
in your code
 
I mean, if we place pictures on SE, there is a link in the text to the image. If you upload a better one and replace the link with a new one, I can imagine they do some kind of garbage collection. Throw away all images that are not referred to in either a Q or an A
 
At least in my experience they don't if you link them in your code. I used that quite a few times
 
but what did you mean then by "the gif shouldn't be in your post"?
 
you upload it to imgurl and then post
`NotebookPut@ImportString[Uncompress[
StringJoin @@ FromCharacterCode@#[[3 ;; #[[1 ;; 2]].{1, 256} + 2]] &[
Flatten@ImageData[Import["http://i.stack.imgur.com/hhoNE.gif"],
"Byte"][[All, All, 1]]]], "NB"];`
that is enough to keep the image
 
Isn't that a bit ugly? What do you think of a palette solution?
 
12:15 PM
@SjoerdC.deVries Only useful if all users share the same palette. You must include a disclaimer each time you use it
 
OK, the 1D version code is shorter anyway. By the way: your color solution won't work for GIF: only 256 colors allowed.
And it saves only image pixels not file size.
And in the 1D version you don't see the image pixels, so that's no problem
 
you mean the 0s are not allowed in gifs?
oh, I see
what a pity
@SjoerdC.deVries Try this
NotebookPut@
ImportString[
Uncompress@(FromCharacterCode@
Reverse@TakeWhile[
Reverse@IntegerPart@
Flatten[(ImageData[
Import@"http://i.imgur.com/0okGX.png"] 256)], # != 0 &]),
"NB"]
 
@Verde GIF uses indexed color. The index table has 256 entries
@Verde works. Where did you post the PNG?
 
12:31 PM
@SjoerdC.deVries imgurl
imgur
 
IntegerPart?? Use "Byte" as second argument in ImageData
 
yep, forgot that parm
 
@Verde That's in the link. I mean, in which post? I wanted to see how it reacts on a 1D PNG. The 1D GIF is OK
 
0
A: Is there a way to facilitate the copy&paste process for code samples?

VerdeNotebookPut@ ImportString[ Uncompress@(FromCharacterCode@ Reverse@TakeWhile[ Reverse@IntegerPart@ Flatten[(ImageData[ Import@"http://i.imgur.com/0okGX.png"] 256)], # != 0 &]), "NB"]

 
The Byte version:NotebookPut@
ImportString[
Uncompress@(FromCharacterCode@
Reverse@TakeWhile[
Reverse@Flatten[(ImageData[
Import@"http://i.imgur.com/0okGX.png", "Byte"] )], # !=
0 &]), "NB"]
@Verde OK, so you didn't actually place the figure there. I wonder whether that has impact on its retention.
 
12:37 PM
@SjoerdC.deVries I don't believe so. I used this a few times on SO
 
Should work nice then. Still, people want a different solution (but, for the time being...)
shouldn't we be using the "stack" version of imgur?
 
@SjoerdC.deVries yep. that was a test
fixed (using the "stack" version)
 
Works 2
@verde We could combine the exporter with Szabolcs' palette
 
@SjoerdC.deVries Yep, but the palette is not mandatory to understand the posts
yours is a good idea, we need to improve on it
sorry, gotta go
 
@verde bye
got to get working too
 
1:28 PM
anybody knows why expr = Sin[10^23];{N[expr, 15], N[expr], N[expr, 17]} gives {0.701140639861078, -0.3240539376430033, 0.70114063986107847} ? I mean why is MachinePrecision so special ($MaxExtraPrecision increase does not seem to change anything here)
 
1:45 PM
@RolfMertig precision tracking is switched off at MachinePrecision, so numerical errors accumulate without being noticed. For any other precision, including $MachinePrecision, it's on, so when the precision starts dropping, more is added.
 
@RolfMertig Also, different algorithms are used for machine precision and arbitrary precision.
If memory serves, a minimax approximation is used for machine precision, and other methods are used for arbitrary precision. That might explain the difference.
 
2:08 PM
@OleksandrR && @J.M. : Thanx. Some student just asked me this here and I was stumbled. Numerical maths was never my strong side.
 
 
4 hours later…
6:16 PM
So, I was thinking about this answer that I wrote yesterday, which also answers this question. Does anyone know how/why NonlinearModelFit is able to work with complex-valued functions in some cases but not others?
 
6:34 PM
In other words, is there a well-known approach for complex nonlinear least squares that's better than transforming an n-dimensional complex model to an (n +1)-dimensional real one and fitting that? (I guess this can't be what NonlinearModelFit is doing, otherwise it wouldn't be running into difficulties. Also, the choice of transformation needed to do this is somewhat arbitrary.)
 
7:02 PM
Hello; I am wondering if its appropriate to ask a question about identifying critical points of a 2D field/image (maxima, minima saddle points). I.e. the generalisation of mathematica.stackexchange.com/questions/5575/…
 
@chris sounds perfectly appropriate to me!
 
7:24 PM
@Olek It seems um = Image[u] // MinDetect partially addresses my query but not for saddle points.
 
R.M
@chris You might find some utility in this question and its answers, especially halirutan's
23
Q: Updating Wagon's FindAllCrossings2D[] function

J. M.Stan Wagon's Mathematica in Action (second edition; I haven't read the third edition and I'm hoping to eventually see it), demonstrates a nifty function called FindAllCrossings2D[]. What the function basically does is to augment FindRoot[] by using ContourPlot[] to find crossings that FindRoot[] ...

also see the comment by Matthias under halirutan's answer
 
@R.M. thanks. Would you know of any generalization in 3D in mathematica?
The way we do this in astronomy is via a local quadratic fit
 
R.M
7:41 PM
@chris sorry, I'm not aware of any generalizations to 3D... you might want to ask @J.M. that when he's around
He'll probably have a few suggestions for you
 
ok thanks
As a rule of thumb is it a good idea to put questions involving the extension to 3D of existing image processing functions (when they are needed!) ?
 

« first day (222 days earlier)      last day (4263 days later) »