Jump to content

AtariSMN82

Newbies
  • Posts

    10
  • Joined

  • Last visited

  • Days Won

    1

AtariSMN82 last won the day on April 17 2022

AtariSMN82 had the most liked content!

1 Follower

Contact Methods

  • Website URL
    https://vk.com/id238303603

Profile Information

  • Gender
    Male
  • Location
    Russia
  • Interests
    C++, Paint.net Plugins, 2D graphic, Dithering, Experimental effects

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

AtariSMN82's Achievements

Apprentice

Apprentice (3/14)

  • Reacting Well Rare
  • Collaborator
  • One Year In
  • First Post
  • Week One Done

Recent Badges

18

Reputation

Single Status Update

See all updates by AtariSMN82

  1. I would like to let you know that I had made a upgrade of a G'MIC filter named Transfer Color [Reduced Colors], and you can use some of the ideas found there into your plugin which is for reducing color.

    1. AtariSMN82

      AtariSMN82

      palette of one picture is applied to another?

    2. Reptillian

      Reptillian

      That's possible by getting the existing color. In context of C#, and PDN, you can create a 3D array.

       

      Something like this:

       

      1. array_3d=[256,256,256] # This means a 3D array with dimension of 256,256,256

       

      2. Loop by pixel by pixel within picture, and find the color. Use the current color as coordinate to increment at r,g,b of array_3D.

       

      3. Create a list of colors

       

      4. Loop by array in 3D array, and if the value in index r,g,b is greater than 0, append the rgb into list of color.

       

      If you want more information, I would recommend you to start a thread on plugin developer.

       

      For more advanced things like getting the closest match and specified color, you do have a start to there. It's just out of my league to do as what I did was existing commands within G'MIC to do the job rather than code it.

×
×
  • Create New...