Urgent.News

What's breaking now, across hundreds of outlets.

AI

Is This Selfie Underexposed, With Crushed Shadows in the Hair or Collar? A Python Histogram-Floor Check Before a Malfoid AI Upload

A dark selfie is not the same thing as a crushed one. If the platinum hair, or the collar of the shirt, has already piled up in bin 0 of the luma histogram, those pixels are a hard black patch. A later still 3:4 portrait will keep them. I run the studio at Malfoid AI . It makes a still Female Malfoy / Fem Draco portrait, from a photo of an adult or without a photo, for $4.99 / 2 credits. The…

The studio Malfoid AI produces portraits of female Malfoy/Draconians from photos, at a cost of $4.99 for 2 credits. The portraits are created at 1K resolution, without video or prompt input. Credit packs are available for future use. The pricing has remained unchanged since October 31, 2026. The article discusses a histogram-floor test to determine if the hair or collar of a portrait is underexposed due to crushed pixels.

Two ROIs (regions of interest) are used: one for the hair and one for the collar. For each ROI, a 256-bin Rec.709 histogram is generated. A pixel with a luminosity of (0, 0, 0) is assigned to bin 0, which represents the darkest possible shade. The script also identifies the largest 4-connected island of pixels at or below a luminosity threshold of 3.

The check determines if the hair or collar has reached the "floor," meaning they have already accumulated crushed pixels in bin 0. The fail rule states that if the fraction of pixels in bin 0 is greater than or equal to 0.020, or if the largest island of pixels at or below luminosity 3 is greater than or equal to 400, then the portrait is considered to have crushed blacks.

This is a narrower test than checking for mean exposure, backlight silhouettes, or highlight ceilings, which address different issues. The test is applied to synthetic construction drawings, not real photographs.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

A survival guide to the words behind the AI boom

AI is changing almost as rapidly as the vocabulary around it. Here's what you need to know.

  • Agentic AI performs tasks independently without much human intervention.
  • Artificial General Intelligence (AGI) aims to create AI with human cognitive capabilities.
  • Alignment in AI safety research ensures AI systems' goals align with human values.

More from Saturday, 28 November 2026 →