TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How much oranger do red orange bags make oranges look?

173 点作者 otras大约 1 个月前

32 条评论

Dwedit大约 1 个月前
Warning, always convert your colors to from sRGB to Linear RGB before doing any math on them, then convert them back to sRGB afterwards for displaying them.<p>sRGB is the familiar color space you all know and love, it&#x27;s what your display uses, and it&#x27;s what has those RGB numbers between 0 and 255. But it&#x27;s not a linear color space.<p>First think of values as being between 0 and 1 instead of 0 and 255. To change sRGB to Linear, do X^2.2 (close to squaring the value). To change Linear back to sRGB, do X^(1&#x2F;2.2) (close to a square root).<p>In Linear RGB, a value of 0.5 is halfway between black and white. You can put a stripe or checkerboard pattern next to the color value, and it will appear to be the same brightness. But in sRGB, a value of 0.5 is much darker. Linear RGB of 0.5 is roughly equivalent to sRGB of 0.73.<p>The actual method of conversion involves a complicated curve that isn&#x27;t continuous, using X^2.2 is still an approximation.
评论 #43676629 未加载
评论 #43679891 未加载
mrob大约 1 个月前
&gt;First, the average pixel is not what I would expect it to be at all<p>It looks like the averaging was done in default sRGB color space, with:<p>magick &quot;$f&quot; -resize 1x1 txt:-<p>Downscaling should instead be done in a linear colorspace. Human vision is non-linear, but the filtering required for downscaling is equivalent to blurring, which is linear because it&#x27;s done optically not within the retina or brain. Using ImageMagick:<p>magick &quot;$f&quot; -colorspace RGB -resize 1x1 -colorspace sRGB txt:-<p>Additionally, JPEG supports chroma subsampling, which is usually enabled by default. I don&#x27;t know what sips does, but with these small files you might as well use PNG and avoid the risk of losing color information this way.<p>This should produce results closer to human perception.
noqc大约 1 个月前
&gt;The average pixel was not what I expected.<p>The average pixel doesn&#x27;t look correct because human vision does not interepret shadowed colors as different colors. We first guess at the shadows, and then do some kind of inverse mapping from the shaded color space to the illuminated one before we &quot;perceive a color&quot;. This is why the black,blue&#x2F;white,gold dress illusion exists.
评论 #43678738 未加载
ipv6ipv4大约 1 个月前
I&#x27;m of the belief that fruit and vegetable packaging is often designed to hide defects, and to make it harder to visually discern how fresh the produce is (on top of not letting you touch it).<p>Some examples.<p>Red netting on oranges makes it hard to see imperfections on the skin. Green netting does the same for avocados. Costco sells corn in trays that are cling wrapped with a wrap that is unmistakably designed to hide the ends of the corn (the easiest way to discern if corn has gone bad). Other fruits, and veggies like melons, onions, and potatoes have similar netting with colors that seem to be carefully chosen to maximize visual clutter.<p>Why aren&#x27;t all the nets the same color?<p>Costco sometimes sells pears in plastic trays with multiple creases that cause reflections that make it very difficult to see what the pears inside look like.
评论 #43682023 未加载
pixelatedindex大约 1 个月前
They really don’t look all that different to my untrained eye - in fact I think it looks “better” without the bag. Maybe I’m loco.
评论 #43674808 未加载
评论 #43675096 未加载
评论 #43678142 未加载
评论 #43678120 未加载
评论 #43678756 未加载
alwa大约 1 个月前
It makes sense that adding red adds red (in addition to the avocado sacks you mention, I think of lemons’ yellow bags, limes’ green bags, and the red packaging&#x2F;shelf lining and pink-tinged light in the butcher’s case)—but those images really do look strangely exposed to me.<p>Did you do exercise any specific control over the phone’s camera?<p>I wonder if the ring light might use the sort of general-market LEDs that underperform specifically at illuminating saturated reds and oranges in this range… see for example<p><a href="https:&#x2F;&#x2F;www.canada.ca&#x2F;en&#x2F;conservation-institute&#x2F;services&#x2F;conservation-preservation-publications&#x2F;technical-bulletins&#x2F;led-lighting-museums.html#a7c" rel="nofollow">https:&#x2F;&#x2F;www.canada.ca&#x2F;en&#x2F;conservation-institute&#x2F;services&#x2F;con...</a><p>and<p><a href="https:&#x2F;&#x2F;indiecinemaacademy.com&#x2F;are-leds-ruining-your-projects-video&#x2F;" rel="nofollow">https:&#x2F;&#x2F;indiecinemaacademy.com&#x2F;are-leds-ruining-your-project...</a>
评论 #43675466 未加载
评论 #43676560 未加载
RataNova大约 1 个月前
This is one of those things I knew on some subconscious level but never really thought about until now. Of course the red mesh makes them look more orange - it&#x27;s basically grocery store color grading. Honestly kinda love how simple the trick is. No fancy tech, no marketing wizardry - just &quot;put red stuff over orange stuff, profit.&quot; Makes me wonder what other dumb little visual hacks are happening around me that I&#x27;m not noticing at all.
评论 #43682845 未加载
评论 #43682939 未加载
basisword大约 1 个月前
I think the lighting&#x2F;camera work doesn&#x27;t help here. The first photo of the orange...doesn&#x27;t look orange. It&#x27;s really dark. In the photo from the shop they look orange.
评论 #43675588 未加载
评论 #43676991 未加载
jaffa2大约 1 个月前
Am i mossing something or is this really a blog post saying that if you put something red in a picture and compare it to the same thing without red, then the picture with more red, looks, well, more red?
评论 #43675705 未加载
评论 #43678781 未加载
JadeNB大约 1 个月前
In response to the observation the average pixel color is surprisingly brown, I&#x27;ll take today&#x27;s opportunity to induct some of my fellow HNers into today&#x27;s lucky 10,000 by linking Technology Connections&#x27;s &quot;Color is weird&quot; video (<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=wh4aWZRtTwU" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=wh4aWZRtTwU</a>).
评论 #43678210 未加载
krisoft大约 1 个月前
I just don’t see the effect. Especialy with the picture on the top, the fruit with or without the net looks the same colour to me.
NicOnHN大约 1 个月前
Just an FYI, those aren’t oranges.<p>They are SUMOs which belong to the Dekopon crop type.
评论 #43678840 未加载
jader201大约 1 个月前
Something is off with those first two pics. The orange already looks red, not orange — with or without the bag.<p>If you look at the pic below where it shows the oranges in the store, they’re much oranger.<p>For a post about color accuracy, it seems odd the comparison pics seem to have some color imbalance to them.
dmurray大约 1 个月前
The best oranges [0] I&#x27;ve had were half green. Fresh from the tree, but still plenty ripe.<p>It&#x27;s my understanding that oranges for transport to colder countries are picked unripe and ripened in the holds of cargo ships. This ripening process is great at making the skin more orange, and OK at improving the flavour, but nowhere near as good for that as ripening on the tree.<p>So if I saw green patches on my supermarket oranges, far from the tropics, I&#x27;d be conditioned to expect them to be really good. They wouldn&#x27;t be, of course.<p>[0] Satsumas? Clementines? I don&#x27;t want to get into a debate about what taxonomically is an orange, but these were citrus fruit that turn orange in colour when ripe.
评论 #43675965 未加载
评论 #43679760 未加载
评论 #43676297 未加载
评论 #43678807 未加载
Morizero大约 1 个月前
&gt; Maybe the secret is to never buy bagged fruit, since it’s harder to evaluate the quality of each orange.<p>There&#x27;s already so much food waste due to safe but blemished produce though!
firesteelrain大约 1 个月前
I think the author is on the right track just needs to refine the assumptions a bit. Not sure if the method actually tests whether we perceive the oranges as more orange with red bags. Things like too small of a sample size, lack of any statistical analysis, uncontrolled lighting conditions, not controlling for phone camera, and simplistic color analysis (human eye is much more complex). Also lack of applicability to color science principles
评论 #43678229 未加载
ltbarcly3大约 1 个月前
The oranges he used were very ripe. Lately small oranges like tangerines have been very ripe for me. Sometimes when they are out of season they are borderline green, or actually have visible green on them, or are basically yellow. When they are so unripe, the red&#x2F;orange bag makes a HUGE difference in how they look, it&#x27;s night and day.
ThePowerOfFuet大约 1 个月前
Wait, is that &quot;local grocery store&quot; selling those oranges for $2.49 _each_?!
评论 #43676545 未加载
评论 #43675729 未加载
评论 #43677655 未加载
p0w3n3d大约 1 个月前
Funny experiment however you can change outcome of it just by changing white balance on the camera. I&#x27;m not sure if the creator is aware of that the camera in his phone is always choosing the white balance, and that he should setup manual mode and have constant light source for this to compare.
pier25大约 1 个月前
The blue labels in the bags probably make the oranges pop more being a complementary color.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Complementary_colors" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Complementary_colors</a>
lupusreal大约 1 个月前
I don&#x27;t think averaging the color over the whole image is the right way to do this. When you buy bagged oranges you pick up a bag and look at it close, not squint at it from a distance.
dowager_dan99大约 1 个月前
OT Q: What are the mesh bags made of? They always leave a detritus of orange (citrus) or green (avocados) on the counter; we&#x27;re definitely ingesting this stuff.
bell-cot大约 1 个月前
I mostly remember which stores sold me stuff that turned out to be better when I ate it. These days, that&#x27;s often produce that looks not-so-great.
pikuseru大约 1 个月前
Glad I’m not the only person stood there focusing intently over my spectacles on orange skin looking for defects through the red plastic netting.
xyzal大约 1 个月前
I&#x27;d like to bag my oranges in bags that make them look less orange. I can&#x27;t stand orange recently.
ncr100大约 1 个月前
Oranges in Orange Bags == Rotten Oranges, in my experience. Do Not Buy.
3l3ktr4大约 1 个月前
I like the energy of the post a lot! Nice job.
thousand_nights大约 1 个月前
those are some weird oranges
评论 #43675089 未加载
评论 #43675669 未加载
评论 #43676971 未加载
djaouen大约 1 个月前
I am glad to see we are finally hitting on the <i>real</i> questions everybody has been asking!
windsignaling大约 1 个月前
This is interesting because it shows us how a programmer thinks of a problem vs. how a psychologist or neuroscientist would think of this problem and highlights the lack of &quot;human-ness&quot; in programmer thinking.<p>I&#x27;m no fan of schools forcing STEM students to study boring electives but this is a prime example of why that might be useful.<p>The entire premise of the post is wrong - average pixel value has nothing to do with how orange the oranges look - it&#x27;s all about perception.<p>Here&#x27;s an example where the same exact color (pixel value) can be perceived as either light or dark depending on the context: <a href="http:&#x2F;&#x2F;brainden.com&#x2F;images&#x2F;identical-colors-big.jpg" rel="nofollow">http:&#x2F;&#x2F;brainden.com&#x2F;images&#x2F;identical-colors-big.jpg</a><p>That&#x27;s what the bag adds - context - but the author hasn&#x27;t made this connection.
评论 #43675678 未加载
评论 #43675605 未加载
评论 #43675805 未加载
评论 #43678788 未加载
评论 #43675782 未加载
评论 #43676960 未加载
评论 #43676101 未加载
评论 #43676554 未加载
VeninVidiaVicii大约 1 个月前
I mean… the first orange basically looks red on my monitor.
gherkinnn大约 1 个月前
Brown is dark orange, cmv.
评论 #43674817 未加载
评论 #43674753 未加载
评论 #43675708 未加载